ASP.NET MVC
-
Support Entity Framework 6 scaffolding in ASP.NET MVC 4
Please fix this one: http://support.microsoft.com/kb/2816241
I don't know, why you restrict all EF 6 alpha/beta testers/users - I think the public part of the EF API the scaffolding use is already unchanged.
11 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 -
mixed-mode authentication
It will be nice to have a fully supported and secure way to use forms and windows authentication in the same project. For example let's say that the project has three areas two of which can be managed using windows authentication but one of them can use forms connected to a custom database. In such way the app can support internal users and external users without having to deploy to separate apps.
1 vote -
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/30 votes -
Add responsive design templates with mobile platforms please
Add responsive design templates with mobile platforms please
1 vote -
Create an MSBuild task for creating script and style bundles
While bundling and minification at run time is great, it is also useful at build time. For example, if you are creating a javascript library and want to provide a minified version, it would be very convenient to have an MSBuild task that creates a minified bundle.
1 vote -
Support UniqueIdentifier as UserID in SimpleMembership
For writing distributed database / (multi-master) database applications and/or integrating with other systems, being forced to use an INT for UserID is a killer. Please bring back support for uniqueidentifiers as the UserID and update SimpleMembership to support them, or enable a simple way to override via a provider model.
2 votes -
Add Visual-Studio support for syntax-highlighting a custom file extension with razor & css syntax
Right now, with a bit of thinkering in web.config and a custom RazorViewEngine, it is possible to register the ".rcss" file extension and have razor serve these files just like .cshtml files.
This is useful because it allows e.g. Server.MapPath or Url.Content in css files. Also I can write css and make a simple @if, for example to exclude one of the many styles that cause IE8 to malfunction, without having to start syncing 2 different files...
However, there is no freaking visual studio support. Either one sets it as web form, and then it has problems because in a…
2 votes -
ASP.NET MVC should stop silently catch all unhandled exceptions !
E.g., DefaultModelBinder catches all exceptions. If you mock a model that is bound and the model has IoC, DefaultModelBinder will catch also MockException (which inherits form System.Exception) therefore you can't mock it. What a shame from a framework that proudly says it supports testing.
4 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 -
Use generic types for UserID in Simple Membership Provider
I have to provide membership in an MVC web app to a Microsoft Dynamics CRM back end. CRM uses Guids as entity keys. The new simple provider forces the use of ints. Your old membership providers use Guids. Why not use generics so you can use any data type as key.
5 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 -
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…
60 votes -
Dynamic (runtime) bundling
It should be possible to create bundles during runtime. It's not always possible to know beforehand what scripts/styles pages need. Or it's not practical to create many combinations of scripts/styles.
E.g
~/Views/Shared/_Layout.cshtml
@{
RegisterScript("~/jquery.js");
RegisterScript("~/bootstrap.js");
}~/Areas/Admin/Views/Shared/_Layout.cshtml
@{
Layout = "~/Views/Shared/_Layout.cshtml";
RegisterScript("~/jquery-ui.js")
}~/Areas/Admin/Views/Posts/Edit.cshtml
@{
Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
RegisterScript("~/post-edit.js");
RegisterScriptCode("function Foo(){...}");
}10 votes -
Make parts of HttpContext easier to Mock/Fake to simplify testing
See for example this post by Hanselman http://www.hanselman.com/blog/ABackToBasicsCaseStudyImplementingHTTPFileUploadWithASPNETMVCIncludingTestsAndMocks.aspx that shows how troublesome the HttpContext is for testing.
The problem is that you have to stub several layers even if you only want to set a fake value for User for example. It would be great of this could be simplified so that it was possible to Mock/Fake only the properties/objects we need for that test.
12 votes -
Model binding support for Enums
This ModelMetadataProvider for Enums allows binding to dropdowns: http://geekswithblogs.net/nharrison/archive/2013/01/16/simple-way-to-bind-an-enum-to-a-dropdownlist-in.aspx
This would be pretty useful.
8 votes -
Add the ability to use a DI to create/populate ActionFilterAttribute instances
A strong part of MVC is its extensibility points. However, if you use an IoC/DI container, there is currently no way to populate its dependencies (similar to how you would a controller via the ControllerFactory).
4 votes -
Imeplement HTML5 Form Validations elements in MVC HTML Helpers and Web form Input controls
Imeplement HTML5 Form Validations elements in MVC HTML Helpers and Web form Input controls
4 votes -
Integrate CORS into ASP.NET Core
CORS is becoming more popular and should be fully supported in the ASP.NET stack.
I'm currently using ThinkTecture's IdentityModel package https://github.com/thinktecture/Thinktecture.IdentityModel.45 which recently added a CORS module for MVC and WebAPI, but it currently doesn't work if you have MVC controllers and WebAPI controllers setup in the same project.
2 votesWe have an active pull request that we are working to get into the product. Take a look and let us know what you think:
-
open source the project templates
Open source the project templates or move them to nuget packages, but let the community fork them or extend them or make it easier to get into the new project dialog... its holding us back.
13 votes
- Don't see your idea?