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 support and comment on it.

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

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

  1. Base HttpStatusCodeResult on HttpStatusCode enum

    Would allow to write

    return new HttpStatusCodeResult(HttpStatusCode.Gone);

    Currently, we need to write

    return new HttpStatusCodeResult(410);

    To me, this last line is definitely inferior to the line using the enum and will result in a lot of unnecessary bugs.

    4 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 →
    • add a default ASP MVC 5 (Microsoft.AspNet.Identity) User Management Package

      As per my stackoverflow question http://stackoverflow.com/questions/19997949/asp-mvc-5-microsoft-aspnet-identity-user-management-package

      I think its a bit silly that we add a brand new way of working with users and roles, but aren't given just a basic default user management controller with the ability to add a role to a user or view the current users.

      We used to have this in the membership system and not having it now has the feeling that someone has moved my cheese. Plus, having the ability to view this default controller and views gives the opportunity for us to see the new auth system in action, and provides some…

      413 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…)
        under review  ·  4 comments  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
      • how to convert asp.net project to asp.net mvc

        i have project of assets management i have to convert asp.net to asp.net mvc?plz help me

        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 →
        • Add SSL termination support for link generation

          The Url.Link() etc. methods create links for the same protocol (http / https) as the request. Often in production, SSL termination occurs at the load balancer, and the web servers get http traffic. As such, the links they generate are http. We can force https, but that requires some trickery. Making dealing with SSL termination at the load balancer simpler would be a welcome addition.

          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 →
          • Switch the order in which the html helper finds the property when using Editor(propertyName)

            According to this post when using property name in Html Helpers a call to ModelMetadata.FromStringExpression searches the ViewDataDictionary for a key with the propertyName passed in and then searches the model properties.

            http://forums.asp.net/p/1704693/4528090.aspx?Re+How+could+I+create+a+custom+Object+editor+template+in+Razor+MVC+3+

            This breaks things when you have a property named Title in your model and in the ViewBag ... which by default the templates use ViewBag.Title for the page title.

            Please search the model for properties before searching the ViewData

            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 →
            • better usability of bundles

              For ex. you have some page with
              @Styles.Render("~/some-bundle")
              It will be nice if ctrl+left click on it redirect me to line with BundleTable.Bundles.Add(new StyleBundle("~/some-bundle")) in BundleConfig.cs

              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 →
              • Many to Many Scaffolding. Populate code with check-boxes in create and edit views when there's relations between two tables.

                Whenever there are two tables that have many-to-many relationship, (i.e. Students - Teachers) need automatic code creation with scaffolding will allow Create View to show check-boxes within a form, and a controller should be able to save selected check-boxes for that model.

                9 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 →
                • Create an Local ASP.NET MVC (PC Desktop) Application

                  A Project type that will Run Locally on my machine as a Desktop app, or it will create a local server and run in localhost in the browser, but the key is that all application is written with ASP.NET MVC, and with One click install i could install sql server, my loacl app, and view it in my browser, so it will be easy to creat fast, responsive desktop apps

                  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…)
                    1 comment  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
                  • 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 →
                                          • Don't see your idea?

                                          ASP.NET MVC

                                          Feedback and Knowledge Base