首页 新闻 会员 周边

easyui combobox

0
悬赏园豆:10 [已关闭问题] 关闭于 2014-03-05 10:04

easyui combobox下拉框读取数据库中的一张表

求详细代码??

姚志超的主页 姚志超 | 初学一级 | 园豆:119
提问于:2014-03-03 14:54
< >
分享
所有回答(1)
0

前台:@Html.DropDownListFor(model => new Model.IMA().T19, ViewData["T19"] as IEnumerable<SelectListItem>, new { style = "width:80px;", disabled = "disabled" })

后台:

 List<SelectListItem> itemta = new List<SelectListItem>();
            if (list.Count > 0)
            {
                itemta.Add(new SelectListItem { Text = list[0].T19, Value = list[0].T19 });
                ViewData["T19"] = itemta;
            }
            else
            {
                itemta.Add(new SelectListItem { Text = "", Value = "" });
                ViewData["T19"] = itemta;
            }
小熊QQ糖 | 园豆:152 (初学一级) | 2014-03-04 15:25

这个是 在html页面写的 没有后台 唯一的后台是url调用wcf服务 

支持(0) 反对(0) 姚志超 | 园豆:119 (初学一级) | 2014-03-04 15:27
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册