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. Move DependencyResolver outside System.Web.Mvc

    Currently, DependencyResolver is only applicable to MVC. If it is moved outside System.Web.Mvc , It can be reused in webservice pipeline too. Enterprise library uses servicelocator which is another way of location services. If EntLib is used in MVC applications, there are two mechanisms exist and that makes code inconistent.

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

          218 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…)
            5 comments  ·  Flag idea as inappropriate…  ·  Admin →
          • Add Webpart/portlet framework

            Add webpart/portlet framework to ASP.MVC

            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 →
            • razor debug

              Not only see "Object reference not set..." exception, but also see where is a problem.

              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…)
                1 comment  ·  Flag idea as inappropriate…  ·  Admin →
              • Support for server side javascript file such like script.csjs or script vbjs

                Support for server side javascript file such like script.csjs or script vbjs which executes server side codes and outputs pure js so we can add anything we need like localized text

                28 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 →
                • [DefaultValue] support for property inside of complex model

                  1) Make ablility to define default value for properties inside of a complex models using DefaultValueAttribule just like for action method parameters.

                  2) Introduce following optional url generation mode: if actual model member value equals to its DefaultValue then do not render it as key-value inside query string, example:

                  public class FooModel
                  {
                  [DefaultValue(1)]
                  public int PageNumber { get; set; }
                  }

                  rendered as:

                  /foo?PageIndex=2

                  or

                  /foo

                  but not:

                  /foo?PageIndex=1

                  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 →
                  • Make RequireHttps more flexible

                    RequireHttps, if present on a controller method, redirects to use https, however, when going to other controller methods that do no have RequireHttps it still uses SSL. We would need RequireHttp, which should be the default. This would redirect back to non-ssl. Also needed would be a IgnoreProtocol (perhaps a better name) that would allow either http or https.

                    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…)
                      0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                    • Separate controller type location from controller instantiation

                      Currently the only way to locate a controller type based on a request context and controller name is to use ControllerFactory.CreateController.

                      It would be nice to be able to locate the controller type without having to run a full instantiation on the controller type just so you can GetType() it.

                      Controller activation was separated out of the ControllerFactory... but controller type resolution wasn't. Can we get that fixed?

                      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 →
                      • Enable location and evaluation of authorization filters outside the request pipeline

                        When writing things like site maps or action link helpers (e.g., http://aspnet.uservoice.com/forums/41201-asp-net-mvc/suggestions/2078037-authorize-check-in-actionlink-helpers?ref=title ) it is necessary to locate a controller, an action on that controller, and then evaluate authorization.

                        This is currently really, really painful. It'd be nice to have a more supported mechanism.

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

                          Donut Caching (output caching with substitutions). One method would be to have output caching on the action as we have now but where you can optionally not cache certain partials within the view - perhaps by using a new helper .e.g Html.SubstitutePartial

                          20 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 →
                          • Support passing @model to Html.BeginForm(

                            Right now you can pass one model to View using @model syntax. But in many cases there is need to have multiple Forms on page and instead of making one big model that covers everything, or splitting that View into multiple Views it might make more sense to be able to pass your Model to BeginForm. Good example will be view which has both Login and Sign Up forms on the same page.

                            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  ·  Flag idea as inappropriate…  ·  Admin →
                            • Support for polymorphic model binding

                              MVC currently has a nice story around polymorphic models for display purposes using templates. However, this breaks down when you try to post back to the controller.

                              If your base class is abstract, then you get an error that MVC can't create the abstract type (which you don't want anyways because you want it to instantiate the concrete type). If you try to use multiple action methods that differ only by parameter (to handle each subclass) then you get errors about ambiguity.

                              I'd like to see two things added to MVC. First, support overloaded action methods within the same set…

                              15 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 →
                              • Implement HttpContextBase in a non-web context

                                HttpContextBase was a nice addition, but reimplementing HttpContextBase in unit tests is time-consuming when a codebase takes advantage of several of its features such as Request and Server. Would like to see a nice HttpContextBase instance generator given some properties or arguments.

                                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 →
                                • Be able to use cumulative @section declaration

                                  Suppose that we have a @RenderSection("ScriptsContent") in the _layout.cshtml file.

                                  If i use "@section ScriptsContent" in a View and i also use the SAME section in a PartialView, i would like to have it cumulative.

                                  So the @RenderSection("ScriptsContent") will render the one declared in the View + the one declared in the PartialView.

                                  It will be very usefull when you want to have all your scripts at the bottom of you page and want to declare them here and there in your view and partial view.

                                  14 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 →
                                  • Ability to redirect to another view of different controller with Model and ModelState preserved

                                    The current implementation of returning a View is parameterised by View name its model and other stuff like Master page, etc. what if it is possible to resturn a View with the View name, controller name and Model with optionally specifiying if the model state should be preserved or not (for validation messages). That would be great.

                                    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…)
                                      2 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Membership

                                      I suggest you have new membership providers for enterprise applications. Many of the projects I work on require groups of users that follow the same role under an organization. As well as, for that organization only. Also I wish more of this custom profile information was stored in there own table, instead of in xml in a table.

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

                                        It would be nice of Views could be modified to except multiple strongly typed parameters(not dynamically through ViewBag's, and not through ViewModels)

                                        For a non-trivial data entry application, it seems almost every view requires its own ViewModel to carry various information (like select ID's from dropdown's, etc.) back to the controller. This is very much like the days of Win32 programming, where you had to declare these massive structs to pass data back and forth, rather than using parameters. Imagine if methods in C# no longer supported parameters, and instead you had to create a new ViewModel class to support…

                                        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 →
                                        • Improve SelectLists/DropDowns Development

                                          Right now there are a number of difficulties in getting selectlists / dropdowns to simply work right. It's just not intuitive. The top two most-voted issues on CodePlex are both related:

                                          http://aspnet.codeplex.com/workitem/7629
                                          http://aspnet.codeplex.com/workitem/4932

                                          Posted on 8/15/2011 at 5:17PM you can find a comment on the first of the above two desribing the pains and my suggested fix. I hope that's helpful.

                                          You can also find ample instances of users having issues with selectlists on the MVC forums (on www.asp.net) and StackOverflow.

                                          Sometimes you need to build interstates and sometimes you need to fix potholes. Please fix this pothole! :)

                                          43 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 →
                                          • Don't see your idea?

                                          ASP.NET MVC

                                          Feedback and Knowledge Base