MVC @Html.DropDownList()绑定值
摘要:
Controller中:ViewBag.modules = new SelectList(集合.ToList(), "下拉框键", "下拉框值");View中: @Html.DropDownList("将要返回的值", ViewBag.modules as IEnumerable, "--请选择--"); 阅读全文
posted @ 2014-04-09 20:15 yukifish 阅读(491) 评论(0) 推荐(0) 编辑