According the the ajax library example for autocomplete (
found here), your AutoComplete Page method should look something like this:
<System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()>
Public Shared Function GetCompletionList(ByVal prefixText As String, ByVal count As Integer, ByVal contextKey As String) As String()
Return Nothing
End Function
Your signature looks wrong to me. Your missing the "ByVal contextKey As String" parameter, and your returning a generic list instead of an array of string. The return value may not matter... but it might. The signature difference is probably a problem.
I also noticed that your ToolKitScriptManager and your asp:TextBox do not occur in in the same order on your page as they do in the example. This may also be an issue - if I were having a problem getting this to work, I would stay as close to the published example as possible. In the example, they occur in the page like this:
<asp:toolkitscriptmanager id="ToolkitScriptManager1" runat="server" xmlns:asp="#unknown">
</asp:toolkitscriptmanager>
<asp:textbox id="txtMovie" runat="server" xmlns:asp="#unknown"></asp:textbox>
Hope this helps,
- Pete