i have area list in alphabet wise, i want to display it when i enter first letter in my textbox. Autocomplete code in C#
If jQuery is an option, you could take a look at the Autocomplete plugin.
Have a look at this AjaxControlToolkit:AutoComplete Extender is another option
use AJAX Autocomplete http://www.asp.net/AJAX/AjaxControlToolkit/Samples/AutoComplete/AutoComplete.aspx
If Silverlight is one of your options, then it will be a cake job:
Xaml:
<input:AutoCompleteBox x:name="myAutoCompleteBox"></input:AutoCompleteBox>
Code behind,
myAutoComplete.ItemsSource = "a b d e f g".Split(' ');
You can bind other events TextChanged()
, SelectionChanged()
, or do custom value bindings, custom filtermode.