ASP.Net AJAX AutoComplete Control using C#

AJAX AutoComplete control is very useful extender control AJAX Control toolkit that provides the functionality of displaying a intellisense type dynamic dropdown list. AJAX AutoComplete can be applied on ASP.Net Textbox control along with a Panel control to display the list of related items dynamically. AutoComplete AJAX exntender works with a web service method that returns the list of items based on the input characters initially entered by the user. For example when user enters alphabet "A" then web server method returns the item names starting with letter "A". User can select the item from dynamically generated list to auto complete the text input.

Properties of AJAX AutoComplete Control

Following properties of AutoComplete control allows you to specify the name of web service and its method to fetch the result from the SQL database. You can also control the length of user input so that web service could take its action after getting the specified number of initial letters from the user.

1. TargetControlID

2. CompletionInterval

3. CompletionSetCount

4. MinimumPrefixLength

5. DelimiterCharacters

6. FirstRowSelected

7. EnableCaching

8. ServicePath

9. ServiceMethod

10. CompletionListCssClass

11. CompletionListItemCssClass

12. CompletionListHighlightedItemCssClass

You can learn the use of above properties from the tutorial of AJAX AutoComplete control by following the link given at the bottom of this sample.

Try the sample below to understand the functionality of AJAX AutoComplete control. Enter a single letter and wait until it populates the AutoComplete list:

Enter any alphabet in the textbox below to open AJAX AutoComplete list: