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. Model binding support for Enums

    This ModelMetadataProvider for Enums allows binding to dropdowns: http://geekswithblogs.net/nharrison/archive/2013/01/16/simple-way-to-bind-an-enum-to-a-dropdownlist-in.aspx

    This would be pretty useful.

    8 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 the ability to use a DI to create/populate ActionFilterAttribute instances

      A strong part of MVC is its extensibility points. However, if you use an IoC/DI container, there is currently no way to populate its dependencies (similar to how you would a controller via the ControllerFactory).

      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…)
        2 comments  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
      • Dynamic (runtime) bundling

        It should be possible to create bundles during runtime. It's not always possible to know beforehand what scripts/styles pages need. Or it's not practical to create many combinations of scripts/styles.

        E.g

        ~/Views/Shared/_Layout.cshtml
        @{
        RegisterScript("~/jquery.js");
        RegisterScript("~/bootstrap.js");
        }

        ~/Areas/Admin/Views/Shared/_Layout.cshtml
        @{
        Layout = "~/Views/Shared/_Layout.cshtml";
        RegisterScript("~/jquery-ui.js")
        }

        ~/Areas/Admin/Views/Posts/Edit.cshtml
        @{
        Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
        RegisterScript("~/post-edit.js");
        RegisterScriptCode("function Foo(){...}");
        }

        10 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 Knockout Scaffold Template

          Currently MVC supports only creating views base on Razor or ASPX engines. For example to have a page displaying list of products we usually create View selecting List scaffold template. You can then pass the List of products as model object then the server will parse each product and construct HTML page and return to the requesting browser. Constructing HTML on the server is NOT acceptable in a web application where speed and performance are highly prioritized. Imagine you have 1000 products per page. The server will loop through all items and for each item create HTML tags. It's very…

          25 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 →
          • Remove all extra preinstalled packges and references from "Empty" project template

            Even the template "Empty" contains many references to unused or obsolete assemblies. Some assemblies or packages included for the future, but this is just confusing and makes clean up a project before starting to develop.

            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 →
            • Throw ActionMethodNotFound exception instead of HttpException when "A public action method ... was not foudn on controller ..."

              Currently a generic HttpException is thrown when a public action method is not found. I propose throwing a specific ActionMethodNotFound exception that inherits from HttpException. The inheritance should keep the code mostly backwards compatible and the more specific exception would allow easier trapping and translating of these exceptions to 404s without having to do a magic string comparison on the exception message.

              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  ·  Flag idea as inappropriate…  ·  Admin →
              • 12 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 →
                • open source the project templates

                  Open source the project templates or move them to nuget packages, but let the community fork them or extend them or make it easier to get into the new project dialog... its holding us back.

                  13 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 →
                  • remove httpcontext dependency for the Controller base class

                    Refactor the existing controller base class or implement an alternative implementation of the controller base class that does not depend on the httpcontext.. like the web api controller .

                    19 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 →
                    • Make parts of HttpContext easier to Mock/Fake to simplify testing

                      See for example this post by Hanselman http://www.hanselman.com/blog/ABackToBasicsCaseStudyImplementingHTTPFileUploadWithASPNETMVCIncludingTestsAndMocks.aspx that shows how troublesome the HttpContext is for testing.

                      The problem is that you have to stub several layers even if you only want to set a fake value for User for example. It would be great of this could be simplified so that it was possible to Mock/Fake only the properties/objects we need for that test.

                      12 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 →
                      • Give me access to the DependencyResolver in the validationContext parameter of IValidateableObject.Validate()

                        I want to be able to get Dependencies from the DependencyResolver through the validationContext parameter of IValidateableObject.Validate(). There is a GetService method and a ServiceContainer but those are a huge pain to get set up.

                        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 →
                        • Render placeholder tag with Display data annotation

                          Support Display(Prompt="...") data annotation in order to render HTML5 placeholder tag with this value

                          16 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 →
                          • Go to View for partial views and editorTemplates

                            I need to open file from the context menu of right mouse button click on the name of partial view or editorTamplate same as "UserProfileTemplate" in code example behind

                            @Html.EditorFor(model=>model.Profile, "UserProfileTemplate")

                            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 →
                            • Better implementation on SimpleMembershipProvider

                              We want better implementation of SimpleMembershipProvider that is not related to Sql server so we can use NoSql databases.
                              We also want implementation that is not that complex and that reference bunch of dlls (DotNetOAuth is very over complex library to do simple stuff)

                              10 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 →

                                We are actively working on a replacement of membership in general in ASP.NET. This work will solve the issues that you are bringing up, expect to see it in the Spring of 2013.

                                We are not sure about removing DotNetOAuth yet. We don’t want to write our own implementation of OAuth when there are community versions that exist today. But we will see what we can do

                              • Make page inspector for Razor cshtml pages

                                I need to change my css and html from visual view of site page, as in chrome developer tools.

                                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…)
                                  under review  ·  0 comments  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
                                • Enable JavaScript file to read localized resource string

                                  in cs or .cshtml file you can get the localized string. For example: ViewRes.Welcome which will return the localized "welcome" text. It would be great if we can do it in any javascript file. Is it possible?

                                  22 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 tree related functionality

                                    Store/read/initialize data as a tree (Entity Fr.), convert trees to JSON.
                                    View Symfony 1.4 with doctrine nested set, and fixtures.

                                    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 →
                                    • Cleaner MVC Maintainability with Folder Encapsulation

                                      Love the product, but wondering if you can modify the MVC convention so that it could behave in the following way? If I add a folder called Customer, that folder should encapsulate all the files and asset resources it needs for the Customer MVC page. The Controllers, Model, Views, Javascript, images. Hard disk space is cheap, but file management is expensive. This makes it much easier to deploy a new feature or roll it back. And you can have side by side old and new feature versioning by simply adding a number to the folder or renaming the folder. This…

                                      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 →
                                      • RadioButtonListFor

                                        I don't think I need to explain that one. But just in case we have DropDownListFor, why there's no RadioButtonListFor?

                                        8 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 asynchronous child actions

                                          Attempting to use a child action that's marked as "async" in its method declaration results in the error message "HttpServerUtility.Execute blocked while waiting for an asynchronous operation to complete.".

                                          The lack of support for asynchronous child actions makes it extremely easy to deadlock .NET 4.5 code. For example, assume the child action makes a call to an 'async' function. Since the child action can't use async as well, it's forced to "Wait" on the async task and block synchronously.

                                          By default, async methods attempt to use the synchronization context - which is blocked. This means that child actions calling asynchronous…

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

                                          ASP.NET MVC

                                          Feedback and Knowledge Base