May 2012
Intermediate to advanced
440 pages
13h 54m
English
Chapter 2. Hello MVC world
Listing 2.1. The default HomeController
Listing 2.2. Registering routes
Listing 2.3. The DbContext used for interacting with the database
Listing 2.4. The GuestbookController with a Create action
Listing 2.5. The contents of the Create view
Listing 2.6. Processing the form data using a controller action
Listing 2.7. Adding the Index action
Chapter 3. View fundamentals
Listing 3.1. The Show controller action
Listing 3.2. Using ViewData information to hide a link
Listing 3.3. Skeleton definition of WebViewPage<T>
Listing 3.4. Passing a collection of guestbook entries to the view