ASP.NET MVC CodePlex Preview 4

Fantastic! A new version of the ASP.NET MVC framework was released on CodePlex today. This new version of ASP.NET MVC includes support for error handling, authorization, caching, and Ajax. 

You can download this release at:

http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=15389

Scott Guthrie has a detailed blog entry on the features of this release. You can read the first part of his two part series here:

http://weblogs.asp.net/scottgu/archive/2008/07/14/asp-net-mvc-preview-4-release-part-1.aspx

You should also look at Phil Haack’s blog entry on the new release:

http://haacked.com/archive/2008/07/16/aspnetmvc-codeplex-preview4.aspx

The CodePlex Preview 4 release includes several important new features including:

· HandleError Action Filter – Simply by adding the HandleError attribute to any controller action (or controller class), you can redirect to a custom error view whenever an exception is raised.

· OutputCache Action Filter – Simply by adding the OutputCache attribute to any controller action, you can cache the output of the action.

· Authorize Action Filter – Simply by adding the Authorize attribute to any controller action, you can control who can call an action. For example, you can restrict access to a particular controller action by user or by role.

· AccountController – The Controllers folder includes a new controller named the AccountController. This controller includes Login, Logout, Register, and ChangePassword actions. The sample application uses the AccountController to enable you to log into and log out of the sample website.

· Ajax Helpers – This release of the ASP.NET MVC framework includes two Ajax helpers that you can use when creating a view: Ajax.ActionLink and Ajax.Form. The Ajax.ActionLink helper renders a link that performs an asynchronous request to the server. The Ajax.Form helper performs an asynchronous form post to the server.

Read Scott Guthrie’s blog post for more detailed information on each of these new features:

http://weblogs.asp.net/scottgu/archive/2008/07/14/asp-net-mvc-preview-4-release-part-1.aspx

2 Comments

  • Hi Stephen,

    Is the Html.Submitbutton deprecated in this release? What is the equivalent?

  • @VB -- The SubmitButton has been moved over to the Microsoft.Web.Mvc assembly. This assembly is included with the MVC template, but you'll have to add the right namespace to your page. Things that get moved to the Microsoft.Web.Mvc assembly are (most likely) not going to get into the first release of MVC.

Comments have been disabled for this content.