easyui
姚志超 2014-03-24 04:37:20 easyui 数据库中的数据不能在前台html页面的下拉框中显示出来??求解
以下是代码:
1.下拉框代码:
<input id="ddlbmanno" class="easyui-combobox" style="width: 80px;" data-options="
url: getRootPath() + '/ServerDictionaryService.svc/GetBUSINESSMANListList',
valueField:'BMANNO',
textField:'CNAME'
" />
2.wcf服务代码 url
public List<BUSINESSMAN> GetBUSINESSMANListList(string where)
{
//BaseResultList<Model.District> DistrictListList = new BaseResultList<District>();
List<BUSINESSMAN> BUSINESSMANListList = new List<BUSINESSMAN>();
try
{
Model.BUSINESSMAN model = new BUSINESSMAN();
DataSet ds = bmanibll.GetAllList();
if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
{
BUSINESSMANListList = bmanibll.DataTableToList(ds.Tables[0]);
}
}
catch (Exception ex)
{
}
return BUSINESSMANListList;
}
求解怎么让数据库数据在前台下拉框中显示出来