Use of AutocompleteExtender
Autocomplete extends any asp.net textbox control. It associates that control with a pop up panel to display words that begin with the prefix that is entered into the textbox. I am unable to do this. Please help me with actual code. I have cleared concept of this control, but unable to do it practically.

Sanjeeb LenkaPosted Jun 27, 2013, 3:12 PM
I modified your code check following code.
in aspx:
ServiceMethod="GetCompletionList" ContextKey="true">
in .cs method
[System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()]
public static List
{
string[] country = { "America", "italy", "india", "Russia", "england", "japan" };
List
foreach (string x in country)
{
if (x.StartsWith(prefixText, StringComparison.CurrentCultureIgnoreCase))
{
CountryNames.Add(x.ToString());
}
}
return CountryNames;
}
if any problem reply
if it helps you mark it as answered
Sanjeeb LenkaPosted Jun 28, 2013, 1:48 AM
if it helps you mark it as answered
Preeti AgrawallaPosted Jun 28, 2013, 1:29 AM
Preeti AgrawallaPosted Jun 27, 2013, 1:15 PM
Sanjeeb LenkaPosted Jun 27, 2013, 8:00 AM
Means you are storing the value in database form text box or only entering data to text box
Preeti AgrawallaPosted Jun 27, 2013, 7:06 AM
lalit raghuvbanshiPosted Jun 27, 2013, 6:29 AM
1) using web service: Read the article: Ajax AutoCompleteExtender control example in asp.net C#,VB.Net using web service
2) without using web service i.e. creating a function in code file: Read the article: Ajax AutoCompleteExtender control example in asp.net using C#,VB.Net without using web service
Sanjeeb LenkaPosted Jun 27, 2013, 4:30 AM
without using webservice
http://www.aspdotnet-suresh.com/2011/05/ajax-autocompleteextender-sample.html
with webservice
http://hightechnology.in/ajax-autocomplete-extender-example-in-asp-net/