摘要: 实践五.呈现RadioButtonList 1.假如现在从数据库提取了一些数据:List<Category> cateoryList = new List<Category>(){ new Category(){ CategoryID = 1, CategoryName = "公司内造" }, new Category(){ CategoryID = 2, CategoryName = "公司外购" }}; 2.通过Linq 将数据生成 SelectListItem 类型的集合,并赋予 ViewData[... 阅读全文
posted @ 2012-02-25 22:31 罗霄(Sto) 阅读(288) 评论(0) 推荐(0) 编辑