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

Discussion

  1. http:// says:

    Hi Stephen,

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

  2. http:// says:

    @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.

  3. Hi stephen..
    thanks for the download link..
    i get it..

  4. hi…thanks a lot for cutting my time short.

  5. the __proto__ feature creates a security breach. I’ve filed a bug report

  6. i prefer to use what is expert said….so thanks a lot stephen

  7. NikeAir says:

    Nice article, very helpful. Thanks!—
    Nike ,Jodon ,kappa shoes are selling on the way..Come on
    …………….Nike shoes ! Addidas ! crazy buying —————— Nike Shoes || air yeezy

  8. f34 I believe it is a promising (currently version 4.0). So I would stick with it.. thanks d

  9. HD Video Converter says:

    As the users of HD Camcorders like Sony, Canon, Panasonic, this HD Video Converter is necessary to help us convert hd Video easily and quickly. The Converter for HD provides several practical editing functions to help you achieve ideal output effect. Trim function is to cut videos into clips which you can just convert and transfer to your player. Crop function helps you remove black bars around the movie. You could use Effect function to adjust video brightness, contrast, saturation and more parameters. More powerful and considerate functions are waiting for you to explore.Mac Video Converter l Rip Blu Ray l VOB Converter !