View Single Post
  #3 (permalink)  
Old April 3rd, 2009, 06:48 PM
Steve S Steve S is offline
Friend of Wrox
Points: 546, Level: 8
Points: 546, Level: 8 Points: 546, Level: 8 Points: 546, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2009
Location: Portland, OR
Posts: 105
Thanks: 3
Thanked 20 Times in 19 Posts
Default

page 116 of the pdf:

All of the view templates we’ve created for our NerdDinner application (“List”, “Details”, “Edit”,
“Create”, “NotFound”, etc) have been based on this Site.master template. This is indicated via the
“MasterPageFile” attribute that was added by default to the top <% @ Page %> directive when we
created our views using the “Add View” dialog:

Code:
<%@ Page Language="C#"
Inherits="System.Web.Mvc.ViewPage<NerdDinner.Controllers.DinnerViewModel>"
MasterPageFile="~/Views/Shared/Site.Master" %>
There is no "List" View (probably means Index) and only the "Edit" And "Create" use the <NerdDinner.Controllers.DinnerViewModel> the "Details" uses <NerdDinner.Models.Dinner> and the "Not Found" uses 'none of the above'

They do all use the same master page, which is the point being made, but implying that all use the same <% @ page %> is a erroneous.

Last edited by Steve S; April 3rd, 2009 at 06:53 PM..