Have just started playing with ASP.NET MVC and have stumbled over the following situation. It feels a lot like a bug but if its not, an explanation would be appreciated :)<
Ok I may be missing something from this thread however in C# the following works:
Html.DropDownList("ProfessionGuid", (SelectList)ViewData["Professions"])
Where 'ProfessionGuid
' is the value to be selected in the list.
In VB.Net I believe it would be:
Html.DropDownList("ProfessionGuid", ViewData["Professions"] AS SelectList)