ASP.NET MVC
-
Make 'Find all References' search in MVC Views
For example, let's say I'm working in an ASP.NET MVC project and have a file named AccountDetailsViewModel.cs open in IDE editor. This file contains a class named AccountDetailsViewModel. In this same MVC project, I have an MVC View in AccountDetailsView.cshtml. This View is strongly typed to use the AccountDetailsViewModel object. When I right-click in AccountDetailsViewModel to find all references to this class, the file AccountDetailsView.cshtml does not appear in the results. The reference to the View Model is not discovered in AccountDetailsView.cshtml. Please enhance the "Final all References" search functionality to discover references in ASP.NET view files such as .cshtml,…
113 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…
80 votes -
add support for dojo toolkit
MVC4 has a great potential for developing RIA applications..
I know that jQuery is most popular js framework and it has a lot of plugins but wouldn't it be a cool thing to have one unified framework for most things (look at dojo uis)?So my suggestion is to add support for dojo toolkit, and create special helpers, validators, etc.
It shouldn't be hard, cause dojo supports html5 params and with that it's even easier to add unobtrusive validation than in jQuery.. just parse page and it magically works!What do you think about that?
62 votes -
ASP.NET MVC 4 JsonResult can use Json.Net?
ASP.NET MVC 3 before, JsonResult use JavaScriptSerializer, JavaScriptSerializer have "Date" format problem.
ASP.NET Web API use Json.Net, the ASP.NET MVC 4 can use Json.Net by JsonResult?
44 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/41 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!!!
30 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 -
Create editor for Views in ASP.NET MVC Razor
I need preview for my html markup
21 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 -
Render placeholder tag with Display data annotation
Support Display(Prompt="...") data annotation in order to render HTML5 placeholder tag with this value
19 votes -
MVC must have a design view like ASP.net
The problem with the development with MVC is that we are used to ASP.net design view and drag and drop. If this is there is MVC it would be very easy.
16 votes -
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.
14 votes -
add a default dependency resolver that can provide out of the box constructor injection
pick one and put it in the default templates
14 votes -
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 -
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 -
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.
11 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 -
Better implementation on SimpleMembershipProvider
We want better implementation of SimpleMembershipProvider that is not related to Sql server so we can use NoSql databases.
We also want implementation that is not that complex and that reference bunch of dlls (DotNetOAuth is very over complex library to do simple stuff)10 votesWe are actively working on a replacement of membership in general in ASP.NET. This work will solve the issues that you are bringing up, expect to see it in the Spring of 2013.
We are not sure about removing DotNetOAuth yet. We don’t want to write our own implementation of OAuth when there are community versions that exist today. But we will see what we can do
-
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.
9 votes -
RadioButtonListFor
I don't think I need to explain that one. But just in case we have DropDownListFor, why there's no RadioButtonListFor?
8 votes
- Don't see your idea?