摘要:
Html.DropDownList()赋默认值:页面代码如下: <% List<SelectListItem> list = new List<SelectListItem> { new SelectListItem { Text = "启用", Value = "0",Selected = true}, new SelectListItem { Text = "禁用", Value = "1" } };%>//list储存dropdownlist的默认值<%=Html.D 阅读全文