What's New in ASP.NET MVC 2.0
One-day course.
This one‐day course is designed for students that have already taken the three-day Developing Web Applications with Microsoft ASP.NET MVC 1.0 course from Hypertheory. In this course, students will explore the new features in ASP.NET MVC 2.0 and learn how to apply these techniques in their applications. Notable new features include areas (which allow greater flexibility in organizing applications), asynchronous controllers for increased performance and scalability, validations, and changes to views that allow for easier development and reuse of view logic.
Target audience
The course is for developers working with the C# programming language that are familiar with the .NET Framework. Experience with other web development frameworks (especially ASP.NET Webforms) is helpful but not required. Students must have taken the Hypertheory course "Developing Web Applications with Microsoft ASP.NET MVC 1.0" prior to taking this course. Students who have not taken the prerequisite course should take the three day Developing Web Applications with Microsoft ASP.NET MVC 2.0.
Upgrade Process: Moving from MVC 1.0
- Installing MVC 2.0 for Visual Studio 2008 / 2010
- Installing the server components
- Side-by-side configuration with Webforms and ASP.NET MVC 1.0
ASP.NET MVC Areas
- Overview of Areas: Reducing complexity in ASP.NET MVC Applications
- Adding Areas to your application
- Area configuration
- Area registration
New Features for Controllers and Actions
- Asynchronous Controllers - better performance for long-running actions and comet-style applications
- Default values for controller action parameters
- Binding to binary data
Models and Validation
- DataAnnotation Attributes for data validation
- Adding Model Metadata
- Client-Side Validation
Views
- Strongly-Typed HTML Helpers
- T4 Templates
- Templated Helpers