摘要: 这是一个常用到的问题,例如将枚举绑定到一个DropdownList……我是这样实现的: public enum BusinessTable { 商店 = 2, 厂商 = 4, } 遍历(在遍历的时候将值添加到一个Dropdownlist上): this.ddl业务表名.Items.Add(new ListItem("--请选择--", "")); foreach (Entity.Common.BusinessTable bt in (BusinessTable[])System.Enum.GetValues(typeof(BusinessTable))) 阅读全文
posted @ 2011-08-10 15:47 拓荒者FF 阅读(10117) 评论(1) 推荐(4) 编辑