0
我正在开发一个MVC3 web应用程序。我想要一个显示在视图中的旋转列表。但是构建过程中出现了错误:MVC3 Razor SelectList.MakeSelection问题
Error 2971 'System.Web.Mvc.SelectList' does not contain a definition for 'MakeSelection' and no extension method 'MakeSelection' accepting a first argument of type 'System.Web.Mvc.SelectList' could be found (are you missing a using directive or an assembly reference?).
我的代码鉴于:
<div class="editor-field">
@Html.DropDownListFor(model => model.JobFiles[i].JobPages[j].UserRotation, (ViewData["rotation"] as SelectList).MakeSelection(Model.JobFiles[i].JobPages[j].UserRotation))
</div>
请帮助。 Thx提前。