Mvc2

Páginas: 15 (3685 palabras) Publicado: 10 de junio de 2011
What’s New in ASP.NET MVC 2
This document describes new features and improvements introduced in ASP.NET MVC 2. Introduction ......................................................................................................................................1 Upgrading an ASP.NET MVC 1.0 Project to ASP.NET MVC 2 .................................................................2 NewFeatures.....................................................................................................................................2 Templated Helpers .................................................................................................................................... 2 Areas......................................................................................................................................................... 2 Support for Asynchronous Controllers ..................................................................................................... 4 Support for DefaultValueAttribute in Action-Method Parameters .......................................................... 4 Support for Binding Binary Data with ModelBinders............................................................................... 5 ModelMetadata and ModelMetadataProvider Classes............................................................................ 6 Support for DataAnnotations Attributes .................................................................................................. 6 Model-Validator Providers........................................................................................................................ 7 Client-Side Validation ................................................................................................................................ 7 New Code Snippets for Visual Studio 2010 ............................................................................................... 7 New RequireHttpsAttribute Action Filter................................................................................................. 7 Overriding the HTTP Method Verb ........................................................................................................... 7 New HiddenInputAttribute Class for Templated Helpers ......................................................................... 9 Html.ValidationSummary Helper Method CanDisplay Model-Level Errors ........................................... 10 T4 Templates in Visual Studio Generate Code that is Specific to the Target Version of the .NET Framework .............................................................................................................................................. 10 API Improvements........................................................................................................................... 10 Breaking Changes............................................................................................................................. 11 Disclaimer........................................................................................................................................ 13

Introduction
ASP.NET MVC 2builds on ASP.NET MVC 1.0 and introduces a large set of enhancements and features that are focused on increasing productivity. This release is compatible with ASP.NET MVC 1.0, so all your knowledge, skills, code, and extensions for ASP.NET MVC 1.0 continue to apply. For more information about ASP.NET MVC, visit the following resources: What’s New in ASP.NET MVC 2 Copyright © 2010 Microsoft Corporation1

  

ASP.NET MVC documentation on MSDN The ASP.NET MVC Web site The ASP.NET MVC forums

Upgrading an ASP.NET MVC 1.0 Project to ASP.NET MVC 2
ASP.NET MVC 2 can be installed side by side with ASP.NET MVC 1.0 on the same server, which gives application developers flexibility in choosing when to upgrade an ASP.NET MVC 1.0 application to ASP.NET MVC 2. For information on how to...
Leer documento completo

Regístrate para leer el documento completo.

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS