ASCX CODE:
<asp:TextBox ID="TextBox1" runat="server" CssClass="control"></asp:TextBox>
<asp:AutoCompleteExtender ID="TextBox1_AutoCompleteExtender" runat="server" DelimiterCharacters=""
Enabled="True" ServicePath="~/Search.aspx" ServiceMethod="GetCompletionList" TargetControlID="TextBox1" MinimumPrefixLength="2"
UseContextKey="True">
aspx code:
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static string[] GetCompletionList(string prefixText, int count)
{
VisualArchiveServiceClient client = new VisualArchiveServiceClient();
string environment = ConfigurationManager.AppSettings["Environment"];
return client.GetWildcardAutoComplete(environment, prefixText).ToArray();
}
its working fine...