View Single Post
  #2 (permalink)  
Old April 3rd, 2009, 06:38 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

on page 105 of the PDF the instructions state:
We’ll then update our view template so that it expects a “DinnerFormViewModel” instead of a “Dinner”
object by changing the “inherits” attribute at the top of the edit.aspx page like so:
Inherits="System.Web.Mvc.ViewPage<NerdDinner.Contr ollers.DinnerFormViewModel>

The inherits statement needs to also be included in the create.aspx. The follwing pages address making the required changes to the ActionResult methods for both the edit and ceate, but the inherit for the create.aspx is not mentioned. This generates an error otherwise.