This project is read-only.

SelectedList namespace error

Apr 26, 2009 at 9:22 PM
I am walking through the example chapter and on pdf page 104 (page 102 of 186 in page header) it has us replace the <%= Html.TextBox... %> with <%= Html.DropDownList("Country", ViewData["Countries"] as SelectedList) %>, but this generates a missing directive error.  In the DinnersController the SelectedList is valid, but not in the view.  In the downloaded code it has been refactored so I am unable to tell how to correct the issue.