This four hour class examines building real-world web applications using ASP.NET MVC 3 and the new Razor view syntax. Learn how to craft lean controllers that comprise only a few lines of code. See how to use display and editor templates to decouple the user interface from your views. And practice creating rich and expressive view-specific models. Best practices on mapping domain models to view models, on input validation, and on other topics will be explored.
In Depth ASP.NET MVC: Building Real-World Web Applications with ASP.NET MVC 3
This class is intended for students who have already taken the In Depth ASP.NET MVC: Getting Started with ASP.NET MVC and Razor class or who are already familiar with ASP.NET MVC. During the class, we will build a real-world ASP.NET MVC application from the ground up.
I. Models, Models Everywhere
a. Domain Models
b. View-Specific Models
c. Mapping Between Models
II. Simplify Your Views
a. Using Strongly-Typed Views and Html Helpers
b. Extending the HtmlHelpers Class
c. Using the Built-In Display and Editor Templates
d. Creating Custom Templates
III. Put Your Controller On a Diet
a. Creating Custom ActionResults
b. Using Action Filters
Students receive electronic access and printed copies of the training materials. Coffee, snacks and lunch are provided.
Saturday, September 24, 2011: 1:00 PM to 5:00 PM