87,984
社区成员
发帖
与我相关
我的任务
分享public void getBoxNoByName()
{
string merName = Request["merName"];
List<BoxSecureInfo> mtypeList = BoxSecureDAL.getBoxNoByName(merName);
List<object> Rows = new List<object>();
foreach (var item in mtypeList)
{
Rows.Add(new { id = item.Id, text = item.BoxNo });
}
Rows.Insert(0, new { id = "", text = "==请选择==" });
Response.Write(Newtonsoft.Json.JsonConvert.SerializeObject(Rows));
},是不是因为后台还没执行完成?前段页面循环又开始了导致的?