我正在尝试使用asp.netMVC3设置列表框的初始值。它确实填充了选项,但没有选择它们。@Html.ListBoxFor(Function(model) model.PageTags, New MultiSelectList(Model.PageTags, "ID@Html.ListBoxFor(Function(model) model.PageTags, New MultiSelectList(Model.PageTags, &
我想知道是否有人能解释一下两个ASP.NetMVC3项目在功能上的差异。在这两个项目中,我都有一个视图模型,其中包含以下内容:在这两个项目中,我都有以下ListBoxFor代码:
@Html.ListBoxFor(x=> x.Questions, new MultiSelectList(ViewBag.Questions as List<MyStandardLib.Mvc.Attribute>, &