ASP.NET MVC

I suggest you ...

You've used all your votes and won't be able to post a new idea, but you can still search and comment on existing ideas.

There are two ways to get more votes:

  • When an admin closes an idea you've voted on, you'll get your votes back from that idea.
  • You can remove your votes from an open idea you support.
  • To see ideas you have already voted on, select the "My feedback" filter and select "My open ideas".
(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can vote and comment on it.

If it doesn't exist, you can post your idea so others can vote on it.

Enter your idea and we'll search to see if someone has already suggested it.

  • Hot ideas
  • Top ideas
  • New ideas
  1. Add Stylesheet media type configuration to BundleConfig

    We should be able to configure the `media` property for stylesheets in BundleConfig in case we want to have a 'screen' or 'print' stylesheet.

    http://stackoverflow.com/questions/5563772/print-friendly-asp-net-mvc-3-view

    6 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      0 comments  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
    • Provide PostBackUrl functionality for ASP.NET MVC

      When migrating functionality from ASP.NET Web Forms, one of the difficulties in migrating to ASP.NET MVC is the ability to perform Cross-Page Posting and setting a PostBackUrl to an external Url. In ASP.NET MVC, you can only Redirect to another Urll such as an external Url, but there is no built-in concept of "posting" to another Url that lives outside of the ASP.NET MVC Web Application.

      1 vote
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        1 comment  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
      • Provide Html.CheckboxList and Html.RadioButtonList Helper Methods

        Provide an @Html.CheckboxList/@Html.RadioButtonList and @Html.CheckboxListFor/@Html.RadioButtonListFor Html Helper methods out-of-the-box with ASP.NET MVC to ease the transitioning from ASP.NET Web Forms to ASP.NET MVC. Having these 2 additional Html Helper methods will significantly reduce development time for the use of CheckboxLists and RadioButtonLists.

        2 votes
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          I agree to the terms of service
          Signed in as (Sign out)
          You have left! (?) (thinking…)
          1 comment  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
        • Ditch the RAZOR language and use Jquery or some other flavor of javascript in Views.

          By moving closer to what developers in open source community are using for front-end (javascript libraries) will make ASP.NET MVC more popular and become widely used. Developers need a boilerplate that creates jquery code for Details,Create,Edit, and Delete pages and would allow better customization. Ditch the RAZOR language and use javascript only. Maybe even have boilerplate to create MVVM in Views.

          1 vote
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            I agree to the terms of service
            Signed in as (Sign out)
            You have left! (?) (thinking…)
            0 comments  ·  Flag idea as inappropriate…  ·  Admin →
          • Keyboard shortcut to ViewModel used in a cshtml file, without pressing F12 on Model

            I've been going back and forth between my view and my model quite a lot lately. Even though this isn't a critical thing, it would be nice to be able to navigate to the model that is being used in the view without going to the top of the page and pressing F12 on the model.

            1 vote
            Vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              I agree to the terms of service
              Signed in as (Sign out)
              You have left! (?) (thinking…)
              0 comments  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
            • View-first modelling - create new model class on New View dialog

              Idea: when I add a new View, I enter the name of a Model class that doesn't exist and it gets created.

              Then I mark my page up and use the VS code-gen tools to build-out the properties I am using in my view - this is already possible.

              It's just the create new view UI that needs to be able to add a new model class to the project.

              1 vote
              Vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                I agree to the terms of service
                Signed in as (Sign out)
                You have left! (?) (thinking…)
                0 comments  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
              • In the view context menu, allow custom links

                On a lot of the pages I develop, I have a .js and a .css file that are specific for that page. It would be really nice if I could, from the view, right click and show links to any of these files.

                Maybe we could have a directive similar to the @Model. Something like:

                @Model MyModel
                @Filelink "~/Scripts/MyScript.js"
                @Filelink "~/Scripts/MyOtherScript.js", "
                @Filelink "~/Content/MyCSS.css"

                When we right click, we would now see new menu options called MyScript.js, MyOtherScript.js and MyCss.css. Clicking on these would open the file. It would be a HUGE time saver.

                3 votes
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  I agree to the terms of service
                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
                  0 comments  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
                • Allow overriding ID and Name values using Model Binding

                  When using the default Model Binder, there is no way to override the default ID and name value fields created by decorating with additional attributes. For example, when posting values to Authorize.Net, you want to use "friendly" fields in your Model properties such as Sequence, however, Authorize.Net requires the use of fixed fields such as "x_fp_sequence". By being able to override the default ids and values by decorating the Model, this would make the code a lot more manageable and more flexible for dealing with payment engines such as ASP.NET.

                  Thanks.

                  1 vote
                  Vote
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    I agree to the terms of service
                    Signed in as (Sign out)
                    You have left! (?) (thinking…)
                    0 comments  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
                  • Provide ability to post ASP.NET MVC Models to external Urls

                    Currently, ASP.NET MVC allows to return other Views in the project or Redirect to other Urls. However, if one wants to "POST" to another Url such as Authorize.Net (which only offers a FORM POST API and not a RESTFUL API), one has to concoct special methods to accomplish this. Instead, it would be much easier if ASP.NET MVC provided the ability to POST entire ASP.NET Models in a Form Post to other Urls such as external Urls for payment engines such as Authorize.Net.

                    1 vote
                    Vote
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      I agree to the terms of service
                      Signed in as (Sign out)
                      You have left! (?) (thinking…)
                      0 comments  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
                    • Remove hidden elements for Html.Checkbox and Html.RadioButton

                      When using @Html.Checkbox and @Html.RadioButton or even the @Html.CheckboxFor and @Html.RadioButtonFor elements, a hidden field/element is created alongside these fields when an attribute such as new {@value="myvalue"} is added to the Checkbox or RadioButton element. However, the addition of this hidden element messes ups CSS rendering especially with rendering of jQuery Mobile controls.

                      1 vote
                      Vote
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        I agree to the terms of service
                        Signed in as (Sign out)
                        You have left! (?) (thinking…)
                        0 comments  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
                      • Intellisense for anonymous type HtmlAttributes

                        When typing in Visual Studio to add additional HtmlAttributes in Razor views, there is no Intellisense for anonymous typing of HtmlAttributes such as new {@value="myvalue"}. Instead, when I begin typing new, I immediately get Intellisense for either object {} or Dictionary<string. object> but never for the anonymously typed constructor for adding HtmlAttributes.

                        1 vote
                        Vote
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          I agree to the terms of service
                          Signed in as (Sign out)
                          You have left! (?) (thinking…)
                          0 comments  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
                        • support other content-types in views

                          I'd like to be able to create views of any HTTP content-type/mime-type. For example, javascript with inline razor syntax.

                          I can kind of do this today, so we're part-way there - I can create a script.cshtml for a view named "Script" and set the Response.ContentType = "application/javascript". However the syntax highlighting and intellisense is all messed up.

                          So the ask is either to support other view file extensions with syntax highlighting (eg csjs, cscss ), or make the .cshtml syntax highlighter smart enough to use other markup when the Response.ContentType is set, or support a new @directive to support other…

                          3 votes
                          Vote
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            I agree to the terms of service
                            Signed in as (Sign out)
                            You have left! (?) (thinking…)
                            0 comments  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
                          • Support for Model in Web Pages Razor

                            Allow Web Pages Razor to support Models.

                            7 votes
                            Vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              I agree to the terms of service
                              Signed in as (Sign out)
                              You have left! (?) (thinking…)
                              0 comments  ·  General ASP.NET  ·  Flag idea as inappropriate…  ·  Admin →
                            • Add the donut caching to MVC and make it work with sql dependency

                              Donut Caching is important to make sure some part of a web page are not cached. But it doesn't work with SQL Dependency .
                              For example in our website, we have blocs on the right col that must be refresh each time the page is reloaded.
                              The main col must be refresh only when a new content is published (sql dependency)

                              6 votes
                              Vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                I agree to the terms of service
                                Signed in as (Sign out)
                                You have left! (?) (thinking…)
                                0 comments  ·  General ASP.NET  ·  Flag idea as inappropriate…  ·  Admin →
                              • Add DateTimeEditor, ComboBox, Email, FileUpload and PopUp Helpers with callback options and rich Client APIs.

                                As of now, We dont have option to in razor to input the date and time, since we are using some third party dlls or jQuery datepicker ( dont have time in it. ),

                                And also we dont have FileUploadHelper to Upload and PopUp Helpers to popup the div.

                                Finally need a validation on TextBoxFor() Helper to Input only the numbers, Which means it should not allow the Characters if the Model property is a type of long.

                                6 votes
                                Vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  I agree to the terms of service
                                  Signed in as (Sign out)
                                  You have left! (?) (thinking…)
                                  0 comments  ·  General ASP.NET  ·  Flag idea as inappropriate…  ·  Admin →
                                • Update WebClient to allow file uploads and regular form variables

                                  When utilizing WebClient we are able to do a WebClient.UploadFile however we are not able to add additional fields in the Webclient upload. There needs to be a class to automatically handle these requests.

                                  1 vote
                                  Vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    I agree to the terms of service
                                    Signed in as (Sign out)
                                    You have left! (?) (thinking…)
                                    0 comments  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Validate all data annotation attributes applied to action parameters and apply errors to ModelState

                                    Data annotation validation attributes can be applied to parameters, but they are ignored when it comes to ModelState.IsValid. If I have an action method that just takes 1 argument, say an email address, I don't want to have to create a complex-type view model with only the 1 property just so I can apply EmailAddressAttribute to it.

                                    Here is an SO question pertaining to the same issue, except this user wanted to apply RangeAttribute:

                                    http://stackoverflow.com/questions/10978049/anyway-to-let-mvc-framework-validate-my-action-parameter-just-like-modelstate-i

                                    3 votes
                                    Vote
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      I agree to the terms of service
                                      Signed in as (Sign out)
                                      You have left! (?) (thinking…)
                                      0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Add Reporting template for mvc so developer easily can create crystal type reporting in mvc

                                      I have search a bit for reporting for asp.net mvc.We can add crystal reporting through webform but for razor view there is no option i found.It will b create if asp.net mvc have this option

                                      1 vote
                                      Vote
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        I agree to the terms of service
                                        Signed in as (Sign out)
                                        You have left! (?) (thinking…)
                                        0 comments  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
                                      • Provide More Microsoft Controls for MVC Comparable With Web Forms

                                        Provide More Microsoft Controls for MVC to Be Comparable With Web Forms

                                        I enjoyed having built in Microsoft controls with web forms. All Microsoft web form controls are standardized and stable.

                                        Now with MVC, to get certain UI controls such as a grid view, a developer must find other various 3rd groups for such controls. Those 3rd groups are now beginning to ask for money in exchange for their controls.

                                        There is nothing wrong with making a profit, but if purchasing expensive software like Microsoft Visual Studio, one should expect to have these controls already available without additional cost.

                                        1 vote
                                        Vote
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          I agree to the terms of service
                                          Signed in as (Sign out)
                                          You have left! (?) (thinking…)
                                          0 comments  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Create MVC4 Internet template that uses UniversalProviders and NO oauth - i just had to copy account controller over from MVC3.

                                          SimpleProviders - cannot be configured from web.config - you can't even change the connection string name.
                                          oAuth - just make it go away, never want to see it again - anywhere. Go read about what happens when you use Facebook to log in everywhere and Facebook locks your account out - oAuth is seriously bad idea. Get a password vault and use it.
                                          The Basic MVC4 template has Univeral Providers, but is missing everything else! Where are Home & Account controllers and views?
                                          What is WebMatrix? if I wanted to use it, I would. Instead I am using VS2010 and…

                                          3 votes
                                          Vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            I agree to the terms of service
                                            Signed in as (Sign out)
                                            You have left! (?) (thinking…)
                                            0 comments  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
                                          • Don't see your idea?

                                          ASP.NET MVC

                                          Feedback and Knowledge Base