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 AllowHtml to filter for tags

    The AllowHtml attribute is all or nothing. In many scenarios we want to be able to allow specific tags such as <b> or <br />. How about an overloaded AllowHtml - eg [AllowHtml(br,b,i,p)]

    29 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 →
    • Better grids and paging/sorting options, column sort images, individual column header css.

      Better grids and paging/sorting options, column sort images, individual column header css.

      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…)
        0 comments  ·  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 →
        • Introduce an interface for UrlHelper so the controller can be tested

          The Url property of the controller can not be mocked for unit testing.

          26 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 →
          • 26 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 flash-like feature of Rails

              Sending data between actions when you do post-redirect-get currently still involves using ad-hoc tempdata. Would be nice if this feature is built-in.

              26 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 @helper ExtensionMethod(this HtmlHelper html) for views in APP_CODE

                Support creating extension methods with the @helper razor syntax, inside the APP_CODE folder.

                This could be very useful, when creating html helpers, like the following code:

                @helper ExtensionMethod(this HtmlHelper html, string data, string action)
                {
                <text>
                <div>@data</div>
                should I want to use Html here it is fine:
                @html.ActionLink("Link text", action)
                should I want to use Url here...
                @{var url = new UrlHelper(html.ViewContext.RequestContext)}
                @url.Action(action)
                </text>
                }

                And be called inside any other view like this:

                @Html.ExtensionMethod("Some text", "MyAction")

                That'd be awesome! An easy way to make Html helpers!!!

                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…)
                  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 →
                  • EditorFor templates referencing from different mvc areas

                    Allow support for when using EditorFor that you can reference a template that is in a different area

                    23 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 →
                    • turn off auto-generated ids for form fields.

                      Name attributes are the only required attribute for form fields.

                      Template helpers for form fields auto generate id values.

                      These ids can easily clash and it is a pain to fix it by changing the html prefix throughout your site.

                      There should be a setting for asp.net mvc that turns off auto generated ids.

                      23 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 →
                      • use DataAnnotationAttribute on ViewModel to influence attributes on html controls

                        it would be really usefull if you could add an attribute to the ViewModel (like DataAnnotation e.g. [Required]) and have MVC render an additional attribute or class value to the html control generated.

                        So as an example:

                        In the ViewModel....

                        [AddInputAttribute( Name="class", Value="BlueInputField")]
                        public string TextInput { get; set; }

                        lets MVC render the html as:

                        <input type="text" name="TextInput" class="BlueInputField">

                        You could then select fields using jQuery or display differently using css.

                        Also Attributes like :

                        [AddLabelAttribute( Name="foo", Value="Bar")]

                        could be used to modify the html code generated by LabelFor.

                        23 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…)
                          7 comments  ·  Flag idea as inappropriate…  ·  Admin →
                        • Extend the DropDownList to show the items grouped by a category

                          Extending the DropDownList to show the items grouped by a category

                          <select>
                          <option value="">[Please select an option]</option>
                          <optgroup label="Group 1">
                          <option value="1">Option 1</option>
                          <option value="2">Option 2</option>
                          </optgroup>
                          <optgroup label="Group 2">
                          <option value="3">Option 3</option>
                          <option value="4">Option 4</option>
                          </optgroup>
                          <optgroup label="Group 3">
                          <option value="5">Option 5</option>
                          <option value="6">Option 6</option>
                          </optgroup>
                          <optgroup label="Group 4">
                          <option value="7">Option 7</option>
                          <option value="8">Option 8</option>
                          </optgroup>
                          </select>

                          http://weblogs.asp.net/raduenuca/archive/2011/02/26/asp-net-mvc-extending-the-dropdownlist-to-show-the-items-grouped-by-a-category.aspx

                          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 →
                          • 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 →
                            • Create editor for Views in ASP.NET MVC Razor

                              I need preview for my html markup

                              21 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 →
                              • BeforeValidation and AfterValidation clientside events

                                Extending Unobtrusive Validation to fire an event BeforeValidation and AfterValidation.... maybe similar to how the Ajax helpers work maybe just with JS... not sure

                                This way, when you need to manipulate any other elements on the page when an error occurs then the developer has the control

                                21 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 of Designing the View as like in asp.net webforms

                                  Design Views in MVC.As We Design Forms in ASP.NET WebForms.

                                  21 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 →
                                  • Make MVC easier to extend by favoring composition over inheritance

                                    Take a cue from FubuMVC and other frameworks to make ASP.NET MVC more flexible and easier to extend. Common extensibility stories, such as model metadata providers, should not require inheritance and should be composable. Add some reasonable default conventions, but make it trivial to override or extend them.

                                    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 →
                                    • 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 →
                                      • 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 →
                                        • Localization in Model Binding

                                          Decimal point consideration for diffrent culture. Datetime binding as well.

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

                                          ASP.NET MVC

                                          Feedback and Knowledge Base