Html.Select doesn't exist
I am trying to get an old application, that was written using a mvc preview version, to run with version mvc-2 and have run in the following problem.
<%= Html.Select("categorie", ViewData.Model.Categories, "naam", "categorie开发者_C百科Id", null, 1, false, new { prompt = "== geen filter =="} )%>
Now I get the message that Html.Select doesn't exist, I assume that there was either a name change or it was removed.
My question is how do I resolve this? Either by new function name or using a different method.
Use Html.DropDownList, Html.DropDownListFor. See html helpers overview
精彩评论