0
我正在使用我的ASP.NET页面上的JQuery自动完成功能。而且,我正在使用ashx文件填充列表。JQuery AutoComplete不能与ashx一起工作
但是,ashx看起来好像没有开火。我不确定我做错了什么。
jQuery代码
$(function() {
$("#<%=txtBox.ClientID%>").autocomplete('MyList.ashx', { minChars: 1 });
});
.ashx的代码
[WebService(Namespace = "http://www.yoursite.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class MyList: IHttpHandler
{
public void ProcessRequest(HttpContext context) {
//Just to test
context.Response.Write("test");
}
}