ASP.NET MVC
-
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 -
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 -
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 -
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 -
update jquery.validate.unobtrusive implementation to play nicely with jquery.validation
There is a serious flaw with how the unobtrusive library works. A user can't do the following api call because it just doesn't work.
I'm not the only one who has had problems with this....
$.validator.setDefaults({ onkeyup: false });
http://www.tigraine.at/2011/08/26/jquery-validate-and-microsofts-unobtrusive-validation-dont-play-well-together/26 votes -
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 -
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 -
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 -
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 -
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 -
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 -
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>22 votes -
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 -
Create editor for Views in ASP.NET MVC Razor
I need preview for my html markup
21 votes -
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 -
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 -
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 -
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 -
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 -
Localization in Model Binding
Decimal point consideration for diffrent culture. Datetime binding as well.
19 votes
- Don't see your idea?