Posts

Showing posts from December, 2010

Don't forget the colon on ASP.NET MVC Html helpers!

Note to self: On ASP.NET MVC 2, when using Html helpers, like Html.DropDownListFor, they don't work if you leave out the colon after the opening "crow's beak". This won't work: model.Country, ViewData["Countries"] as SelectList) %> This will: model.Country, ViewData["Countries"] as SelectList) %>