Hi,
I have tested your code locally to resolve this issue. What my thought is the format of the ServiceMethod is not correct.
Please change it to this:
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public string[] GetCompletionList(string prefixText, int count)//, string contextKey
{
string[] ret = new string[] { "A", "B", "C" };
return ret.ToArray();
}
You can refer the example page and the tutorial video for the using of the AutoCompleteExtender:
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/AutoComplete/AutoComplete.aspx
How Do I:Use the ASP.NET AJAX AutoComplete Control
Have my suggestions helped?
Best regards,
Zhi-Qiang Ni