开发者

Html.Select doesn't exist

开发者 https://www.devze.com 2023-03-11 14:42 出处:网络
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.

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

精彩评论

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