part of My aspx page
<asp:TextBox runat="server" id= "TextBox1" ></asp:TextBox>
<ajaxToolkit:AutoCompleteExtender
runat="server" TargetControlID="TextBox1"
MinimumPrefixLength="0" ServiceMethod="getAutoComplete()"
ServicePath="nationality.aspx.cs"
>
</ajaxToolkit:AutoCompleteExtender>
my aspx.cs code:
[System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()]
public static string[] getAutoComlete(string prefixText, int count, string contextKey)
{
string[] a = { "11", "22", "33" };
return a;
}
I am trying to make autocomplete . What am I doing wrong?