开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜