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. Provide validation attributes for Checkbox control

    There is currently no good way to provide Required field Validation for a Checkbox control in ASP.NET MVC using Data Annotations. However, validation could easily be provided for ASP.NET Checkbox/Checkbox controls in ASP.NET Web Forms. ASP.NET MVC should be updated with validation support to match what is already available in ASP.NET Web Forms.

    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  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
    • Add Bundle.config Configuration File support to ASP.NET MVC

      In ASP.NET Web Forms, there is the option to use a Bundle.config XML Configuration file for storing Style Bundle information so that these values can be included without recompiling the application. However, ASP.NET MVC is missing this very useful feature/capability. Instead, this should also be made available for ASP.NET MVC and should include support for both Script and Style Bundles.

      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 all available Controllers in RouteConfig

        In RouteConfig, when assigning default controller name in MapRoute() method,all available controllers should be list out to select which controller user want to set as default controller.

        LIKE

        routes.MapRoute(
        name: "Default",
        url: "{controller}/{action}/{id}",
        defaults: new { controller = "LIST OUT CONTROLLERS", action = "Login", id = UrlParameter.Optional }
        );

        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 →
        • Provide Dynamic Bundling for related CSS and Script content

          While storing content in ASP.NET MVC Content and Scripts folders makes sense in a lot of cases, it makes it very difficult for very large projects with lots of CSS and Script files. That is why a solution like this:http://www.codeproject.com/Articles/842961/Introducing-Dynamic-Bundles-for-ASP-NET-MVC would be very useful for inclusion into the main ASP.NET MVC Framework. This would make it possible to use either solution of including CSS and Script files in their respective directories or closer to where the MVC Views live to know how to update the associated content respectively.

          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 →
          • Throw Exception When Action Model Is Named The Same As Model Property

            If you name your model the same name as a property on the model, then the model is always null when calling an action. For example, if you call:

            [HttpPost]
            public virtual ActionResult Create(EditUnitModel model) ...

            and the EditUnitModel has a property called "Model", then all posts to this action will cause the instance of EditUnitModel to be null. It would be great if this threw some kind of exception stating something like "Your model name cannot be the same name as one of its properties." Or better yet something like this: "Model name 'model' is the same name as…

            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 →
            • Simplify Razor

              If model has many fields, Razor view has a lot of lines, mostly copy-paste which is bad coding and hard to maintain. Already everyting needed for making the proper view is defined inside model using attributes, except the order of fields. I suggest two things:

              1. Add new attribute to model: Rank
              This will define the order of the field in Razor auto generated view.

              [Rank(1)]
              public string Title { get; set; }

              2. Add new Razor command: @AutoGenerate()
              This will auto generate the fields totally based on model attibutes, just one line of code.

              @model MyApp.Models.User
              <h1>My Form</ha>
              @Html.AutoGenerate()

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

                  451 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  ·  ASP.NET MVC  ·  Flag idea as inappropriate…  ·  Admin →
                  • Add reporting feature

                    I really disappoint to use ASP.Net MVC just because of it not include any kind to directly reporting feature. Otherwise this is a very good framework.
                    Please add reporting feature, like crystal report etc.

                    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…)
                      0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                    • Enable subdomain routing support in MVC

                      Everyone who need this feature has implemented their own workaround for this. Can we have the framework support for routing based on sub domains?

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

                            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 →
                            • 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 →
                                • Allow use of built-in helpers rather than blocking them if we need to create our own.

                                  WHY.. in VB.NET do you prevent anyone who creates their own helpers from using any of the built in ones? This doesn't happen in C#. The fact that I can use both in C# is one of the most useful features to me, and the fact that microsoft has not only removed this feature in VB.NET, but left no solutions, workarounds or documentation I find appauling.
                                  Why the developers of MVC chose to create the C# version as a nice, usually-easy, implementation. Then just crap all over the VB.NET version, completely ignoring and breaking core functionality. And then refusing to…

                                  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 →
                                  • 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 →
                                      • Html helpers htmlAttributes way to pass raw strings

                                        There is no way to pass raw data into html helpers which have htmlAttributes. For example:
                                        @Html.LabelFor(model => model.RegistrationDate, new { data_init = "{\"min\": \"2000-01-01\"}" })
                                        will produce:
                                        <label data-init="{&quot;min&quot;: &quot;2000-01-01&quot;}" for="RegistrationDate">Registration date</label>

                                        It would be good to be able pass raw data in some cases not for every html helper as described here:
                                        http://forums.asp.net/p/1554455/3818604.aspx

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

                                          5 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