M
MarkusJ_NZ
Hi, I have a text box which I have associated with an
AutoCompleteExtender.
e.g.
<cc1:AutoCompleteExtender
runat="server"
ID="autoComplete1"
TargetControlID="TextBox1"
ServiceMethod="GetCompletionList"
MinimumPrefixLength="2"
CompletionInterval="1000"
EnableCaching="true"
CompletionSetCount="20"
/>
I then have the following codebehind method which basically just
returns a string array containing countries
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static string[] GetCompletionList(string prefixText, int count)
{
return AutocompleteHelperClasses.GetCountryList();
}
When I go to my page and enter three characters into the text box I
get the list of all the countries. No filtering is applied when I add
more characters to the text box however. E.g if I enter Belgium I
still see all the countries from Australia through to Zaire
Help appreciated
Thanks
Markus
AutoCompleteExtender.
e.g.
<cc1:AutoCompleteExtender
runat="server"
ID="autoComplete1"
TargetControlID="TextBox1"
ServiceMethod="GetCompletionList"
MinimumPrefixLength="2"
CompletionInterval="1000"
EnableCaching="true"
CompletionSetCount="20"
/>
I then have the following codebehind method which basically just
returns a string array containing countries
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static string[] GetCompletionList(string prefixText, int count)
{
return AutocompleteHelperClasses.GetCountryList();
}
When I go to my page and enter three characters into the text box I
get the list of all the countries. No filtering is applied when I add
more characters to the text box however. E.g if I enter Belgium I
still see all the countries from Australia through to Zaire
Help appreciated
Thanks
Markus