Html.DropDownList()的用法 ( Asp.Net MVC)
摘要:
Html.DropDownList()赋默认值:页面代码如下: <% List<SelectListItem> list = new List<SelectListItem> { new SelectListItem { Text = "启用", Value = "0",Selected = true}, new SelectListItem { Text = "禁用", Value = "1" } };%>//list储存dropdownlist的默认值<%=Html.D 阅读全文
posted @ 2011-06-11 11:22 AlexGeng 阅读(2621) 评论(0) 推荐(1) 编辑