ASP.NET MVC 3 Razor |
Index |
Hands-On Lab
ASP.NET MVC Razor
Lab version:1.1.0
Last updated:10/13/2011
Contents
Overview
Exercise 1: Creating a Home Page View Using Razor Syntax
Task 1 � Creating a CSHTML|VBHTML Layout Page
Task 2 � Adding a View Template in Razor
Task 3 � Running the Application
Task 4 � Passing Parameters to a Layout Page
Task 5 � Running the Application
Exercise 2: Using Models in Razor Views
Task 1 � Using the @inherits Directive
Task 2 � Running the Application
Task 3 � Adding a View Template in Razor
Task 4 � Running the Application
Task 5 � Creating Browse CSHTML View and Adding Details CSHTML View
Task 6 � Running the Application
Exercise 3: Creating and Consuming Razor Helpers
Task 1 � Consuming the Razor WebImage Helper
Task 2 � Running the Application
Task 3 � Adding a WebGrid Helper to Browse View
Task 4 � Running the Application
Task 5 � Creating a Custom Helper
Task 6 � Running the Application