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. Improve localization support in views, model metadata, and validation

    Currently the way things get localized in model metadata is the same as DataAnnotations - static properties on some class that does the lookup.

    The problem is, this doesn't integrate with the rest of ASP.NET localization (e.g., ResourceProviderFactory) and means you end up with a ton of these static properties to do lookups.

    A similar situation is true with validation messages - you get a type name and a static property name.

    The problem here is that you don't really get any opportunity to insert any control over where/how resources get retrieved. You can create a custom ResourceProviderFactory; you can't…

    1,025 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  ·  6 comments  ·  Flag idea as inappropriate…  ·  Admin →
    • better binding support for checkbox lists!

      binding checkboxes is still a pain. I'd like to be able to bind a control to an IEnumerable of items and not worry about it anymore.

      647 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  ·  10 comments  ·  Flag idea as inappropriate…  ·  Admin →
      • Add Portable Areas a la Orchard CMS Modules

        It would be an incredibly powerful feature if ASP.NET MVC would support Portable Areas out of the box. A PA would be a class library which contains its own controllers, models, content, views etc. Resources such as css, scripts, images and view templates (.cshtml, .aspx etc) could be embedded resources, but we should also have the option to simply drop the entire project in some sort of "modules" folder in the main MVC application (just like Orchard CMS supports). The main MVC application will autmatically register the areas found in the "modules" folder (also as in Orchard CMS)

        578 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…)
          12 comments  ·  Flag idea as inappropriate…  ·  Admin →
        • Include support for conditional validation

          Often times it is necessary to perform a validation only under a certain condition, X is Required IF Y is checked...etc.

          473 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…)
            19 comments  ·  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…

            372 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  ·  3 comments  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
            • Introduce strongly-typed HtmlHelper / UrlHelper methods

              We should be able to use strongly-typed HtmlHelper (and UrlHelper) methods as follows: Html.Action<ProductsController>(pc => pc.Index())

              330 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  ·  3 comments  ·  Flag idea as inappropriate…  ·  Admin →
              • Route Localization

                In MVC 3 creating global sites is not easy.

                Route localization would be really useful for many reasons including SEO.

                Take the route: /post/show/1/hello-world

                This route could become:
                /en-US/post/show/1/hello-world
                /en-GB/post/show/1/hello-world
                /pt-PT/artigo/ver/1/ola-mundo

                The culture code is necessary to distinguish between en-US and en-GB.

                But all route items is localized.

                This should also be integrated with a cookie just to redirect the user to its version if she or he already visited the site before.

                I think I checked all the approaches and implementations I found. And I didn't find any really satisfying.

                I hope MVC Team could include an easy way…

                277 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  ·  5 comments  ·  Flag idea as inappropriate…  ·  Admin →
                • Precompile razor view before publishing

                  Compiling views on the webserver takes a lot of ressource, and during that time the application is slow to respond.
                  I would be great if we could publish compiled versions of our views. I know razorgenerator do this, but it's not native and we only want compile views for deployment, not when developing.

                  Thanks

                  231 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…)
                    3 comments  ·  General ASP.NET  ·  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…

                    214 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  ·  3 comments  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
                    • Make 'Find all References' search in MVC Views

                      For example, let's say I'm working in an ASP.NET MVC project and have a file named AccountDetailsViewModel.cs open in IDE editor. This file contains a class named AccountDetailsViewModel. In this same MVC project, I have an MVC View in AccountDetailsView.cshtml. This View is strongly typed to use the AccountDetailsViewModel object. When I right-click in AccountDetailsViewModel to find all references to this class, the file AccountDetailsView.cshtml does not appear in the results. The reference to the View Model is not discovered in AccountDetailsView.cshtml. Please enhance the "Final all References" search functionality to discover references in ASP.NET view files such as .cshtml,…

                      195 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  ·  1 comment  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
                      • PRG pattern, out-of-the-box support

                        Built-in support for the PRG (Post, Redirect, Get) pattern. Possibly, through controller action filters ?!, along the the following line: http://weblogs.asp.net/rashid/archive/2009/04/01/asp-net-mvc-best-practices-part-1.aspx#prg

                        178 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  ·  Flag idea as inappropriate…  ·  Admin →

                          Typically in ASP.NET MVC you redirect on success (thus avoiding duplicate post problems) but not on failure. On failure the action handling the post returns the validation errors. Is redirecting on failure and preserving the errors using TempData a common pattern? Is it perhaps even an anti-pattern?

                        • Validation group support

                          Support for validation groups like in ASP.NET Forms. It is needed to support multiple HTML forms on the same page. Also, is should support strongly typed View Data Models, and both client and server side validation.

                          163 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  ·  2 comments  ·  Flag idea as inappropriate…  ·  Admin →
                          • Better Model binding to a list with Non-Sequential Indices

                            It's high time we get rid of hidden fields to fix the non-sequential indices.

                            131 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  ·  3 comments  ·  Flag idea as inappropriate…  ·  Admin →
                            • Allow us to provide an alternate name

                              Allow us to provide alternate names for input elements using DataAnotation for Model-Properties. Sample:

                              [AlternateNames(true, "un", "cn")]
                              public int UserName {get;set;}

                              So the DefaultModelBinder respects this attribute and searches for "UserName", if not found searches for "un" and finally for "cn".

                              Helpers like TextBoxFor<> should also consider this attribute. When the first boolean argument is true (force alternate name) the HtmlHelper should choose the first alternate name as the input name ("un") otherwise choose the property name.

                              This attribute would allow to use models for forms that are posting to pages that are using other technologies or minimize parameter names…

                              126 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…)
                                8 comments  ·  Flag idea as inappropriate…  ·  Admin →
                              • Support for generics in razor view

                                It would be great if razor views could support generic models.

                                @model MyViewModel<T>

                                120 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  ·  6 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                • Support registering Javascript and CSS into <head>

                                  MVC is great for building straight pages, but the current design falls down for components. You can't build an HtmlHelper extension (or any other kind of extension) that renders a script/css into <head> based on the configuration options passed in.

                                  This makes component development very difficult. This is one place ASP.NET webforms shines -- the ClientScriptManager (http://msdn.microsoft.com/en-us/library/system.web.ui.clientscriptmanager.aspx). Obviously, we don't need everything there. Just including a couple methods like RegisterClientScriptBlock and RegisterStartupScript would be huge.

                                  You could actually build a component and/or HtmlHelper that would be a drop in, instead of having to do the HtmlHelper + adding…

                                  103 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  ·  Flag idea as inappropriate…  ·  Admin →
                                  • 96 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 →
                                    • Add Html.ImageActionLink

                                      for <a href=.....><img src=...... />xxxxx</a>

                                      85 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  ·  Flag idea as inappropriate…  ·  Admin →
                                      • A framework method to render a partial view to a string

                                        Render a partial view to a string to send back to an ajax request

                                        79 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  ·  3 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Better Error Handling Support for 404 AND 500

                                          The built in error handling in ASP.NET MVC is pretty poor. If there -controller- can't be found, we've got a 404. Errors? 500.

                                          These then fallback to the ASP.NET error handling -> customErrors. Which means it -has- to goto an aspx or static page.

                                          AND it does a 302 temp redirect .. before it hits the correct route.

                                          AND it route (in the browser) is really poor. Especially with that nasty query string param, appended ...

                                          ---
                                          So something like this would be really nice :=>

                                          1) Allow the customErrors to call an MVC route .. and it's via ResponseRewrite…

                                          66 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…)
                                            3 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1 3 4 5 11 12
                                          • Don't see your idea?

                                          ASP.NET MVC

                                          Feedback and Knowledge Base