Hi Guys,
I am creating a web part in MOSS 2007 that contains an autocompleteextender.
I have ajax-enabled my site by adding all the configs in web.config (Example here)
My web service:
[System.Web.Script.Services.ScriptService]
public class AutoComplete : System.Web.Services.WebService
{
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public string[] GetCompletionList(string prefixText, int count)
{
List<string> results = new List<string>();
results.Add("Here");
results.Add("Here");
results.Add("Here");
results.Add("Here");
results.Add("Here");
results.Add("Here");
results.Add("Here");
return results.ToArray();
}
}
I am able to hit the web service from web browser. However, the autocompleteextender does not call my web service.
My web service url: http://[myserver]/AutoComplete.asmx (I used this for the ServicePath of the extender). My web part page: http://[myserver]/Pages/mypage.aspx
I also tried to add a calendarextender onto the page and the calendar renders underneath the textbox and shows as inline html. Weird.
Any thought would be helpful.
Thanks