ASP.NET MVC 2 is coming along nicely and there is a new preview for your learning pleasure.

It will work side-by-side with ASP.NET MVC 1, and will be included in the .NET 4 Beta 2 release.

Some new stuff …….

  • ModelMetadata and ModelMetadataProvider Classes

    The ViewDataDictionary class exposes a ModelMetada object that contains the metadata that is extracted from the model by the ModelMetadataProvider class. This allows the templated helpers to consume this metadata and adjust their output accordingly. You can use the default provider or create custom ones.  

Model Validator Providers

The model validation providers class provides an abstraction for obtaining validation logic for the model. You can use the default provider or create custom ones.

Client-Side Validation

The model validator provider class exposes validation metadata to the browser in the form of JSON-serialized metadata that can be consumed by a client-side validation library. The provider class allows you to use other client validation frameworks by writing an adapter that processes the JSON metadata and calls into the alternate client validation library. The preview release includes the jQuery validation library and a client-side validation adapter for that library.

New Code Snippets for Visual Studio 2010

Set of HTML code snippets for MVC 2 for VS 2010 Beta 2.

 New RequireHttpsAttribute Action Filter

ASP.NET MVC 2 Preview 2 includes a new RequireHttpsAttribute class that can be applied to action methods and controllers. By default, the filter redirects non-SSL (HTTP) requests to the SSL-enabled (HTTPS) equivalent.

 Overriding the HTTP Method Verb

When you build a Web site by using the REST architectural style, HTTP verbs (GET, PUT, POST and DELETE) are used to determine which action to perform for a resource. ASP.NET MVC includes attributes that you can apply to action methods and that enable ASP.NET MVC to select an action method based on the HTTP verb.

Details Page: http://go.microsoft.com/fwlink/?LinkID=154414

Readme doc: http://go.microsoft.com/fwlink/?LinkID=157066

Installer: http://go.microsoft.com/fwlink/?LinkID=154413

Technorati Tags: Microsoft ASP.NET MVC
Mega World News Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google Yahoo Buzz StumbleUpon Weekend Joy