I have an auto complete extender . I am populating it using Web method
//------------------------------------------------------------------
<asp:TextBox ID="txtTestCode" runat="server">
<cc1:AutoCompleteExtender ID="AutoCompleteExtenderDemo" runat="server"
TargetControlID="txtTestCode" ServiceMethod="GetCompletionList"
MinimumPrefixLength="1" CompletionInterval="1000"
EnableCaching="true" CompletionSetCount="5">
</cc1:AutoCompleteExtender>
/---------------------------------------------------------------------
[System.Web.Services.WebMethod]
public static string[] GetSuggestions(String prefixText, int count)
{
string[] movies = { "RGL", "CYT", "SPL", "URN", "HEM", "BIO", "STL" };
ArrayList filteredList = new ArrayList();
foreach (string s in movies)
{
if (s.ToLower().StartsWith(prefixText.ToLower()))
filteredList.Add(s);
}
return (string[])filteredList.ToArray(typeof(string));
}
[System.Web.Services.WebMethod]
public static string[] GetCompletionList(String prefixText, int count)
{
string[] suggetions = GetSuggestions(prefixText, count);
return suggetions;
}
//--------------------------------------------------------------------
Is there any way to populate it at clientside using javascript