Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

AutoComplete TextBox using Ajax controls

$
0
0

I have a textbox i.e. myTextBox which and use the ajaxtoolkit autocompleteextender as follow:

ajaxToolkit:AutoCompleteExtender runat="server" ID="autoComplete1" TargetControlID="myTextBox" ServiceMethod="GetCompletionList" MinimumPrefixLength="2" </ajaxToolkit:AutoCompleteExtender>

Code Behind is as follows

[System.Web.Services.WebMethod] [System.Web.Script.Services.ScriptMethod] public string[] GetCompletionList(string prefixText, int count) {

I have my code here

}

My problem is that it Never calls the GetCompletionList - the web service method is never called. It never enters the public string GetCompletionList I really do not know why! Do you have any ideas? Thanks


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>