I was trying to use the AutoCompleteExtender, but my webservice method just wouldn't get called. Nothing would work. The problem was, I created a new webservice from scratch and had neglected to add an attribute to the class. A webservice that returns data to the AutoCompleteExtender requires the System.Web.Script.Services.ScriptService attribute on the class.
Hope this helps someone.
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public string[] GetCompletionList(string prefixText, int count, string contextKey) { ... }
0 comments:
Post a Comment