AutoCompleteExtender 支持中文和开头为0的
AutoCompleteExtender如000100
002020
这些都显示不出来,中文也显示不了,help --------------------编程问答-------------------- 帮顶 --------------------编程问答-------------------- 用过的指导指导 --------------------编程问答-------------------- hi --------------------编程问答-------------------- 加上引号就ok 哦
看下面代码
public WebService() { }
[WebMethod]
public String[] GetInfo(string prefixText, int count)
{
string[] list = null;
if (list == null)
{
string sql = "Select top " + count + " coalCode From [tb_coalinfo] Where coalCode like '" + prefixText + "%' ";
DataTable dt = SqlHelper.ExecSQLDT(sql);
string[] temp = new string[dt.Rows.Count];
for (int i = 0; i < dt.Rows.Count; i++)
{
temp[i] = "'" + dt.Rows[i]["coalCode"].ToString() + "'";
}
list = temp;
}
String[] returnValue = new string[count];
returnValue = list;
return returnValue;
}
补充:.NET技术 , ASP.NET