摘要: DropDownList则与TextBox等控件不同,它使用的是select标记。它需要两个值:在下拉框中显示的列表,和默认选项。而自动绑定一次只能绑定一个属性,因此你需要根据需要选择是绑定列表,还是默认选项。DropDownList扩展方法的各个重载版本“基本上”都会传递到这个方法上:public static string DropDownList(this HtmlHelper htmlHelper, string name, IEnumerable<SelectListItem> selectList, string optionLabel, ... 阅读全文
posted @ 2012-03-27 15:15 杨伟明 阅读(3298) 评论(1) 推荐(1) 编辑