WEBSWAPP Silverlight ASP.NET 3.5 ASP.NET 2.0 ASP.NET 1.0
Cascading Lists
AJAX ToolKit
Hierarchies
AutoComplete PagingBulletedList

Using the AutoComplete Extender instead of a cascading list

In this demo, I will use the sample I developed in a previous demo - Cascading Dropdownlists in GridView. I modify only the web user control named "wucCity.ascx" by replacing its content with an AutoComplete extender strategy from the ToolKit to set and retrieve the city based on the first letters typed by the user. Everything else on the webform remains the same and the demo still functions as required.

I also added a TextBoxWatermarkExtender to the AutoComplete TextBox to improve the user experience when editing the content of the TextBox.


 Suite #Address Line 1Address Line 2City, Province, CountryPostal CodeType
Edit DeleteqKlarabergsviadukten 90Box 44 Bath, England, United Kingdom 101 20 Primary
Edit Deletefdgasdfsdf Edmundston , New Brunswick, Canada 21312 Home
Edit DeleteblookfieldWeatern Lanebath Bath, England, United Kingdom BA1 Home

Source code:

AutoComplete source code wucCityAutoComplete.ascx Locations.asmx.cs