Cascading autocomplete made easy

Over the last few days the API of the ScriptAculoUs.Net AutocompleteTextBox control has changed pretty much, since I've switched from a custom implementation based on reflection to the ASP.NET built-in callback mechanism.

I chose to do the switch because the former implementation, despite being much more flexible, lacked in that it didn't let you exploit the ASP.NET Page intrinsic objects like Session, ViewState, and web controls values inside the body of the method which supplied the suggestions, since that instance of the Page was instantiated via Reflection and didn't run through the pipeline at all.

Today I'm lazy about updating the original post - which has become a "patched post" - with the new details, and I chose instead to create a quick screencast to illustrate how easy and straightforward is to implement a cascading autocomplete pattern using the control.

I haven't released the binaries of the new version yet, because I want to do some more testing before, but the source can be found on the SVN repository by the project homepage.

Take a look at the screencast, and please forgive a little mistake I did. When I populate the Cars collection I check for IsPostBack, but it made much more sense if I simply checked for nullness.

kick it on

Published 28 August 2006 05:20 AM by simoneb
Filed under: , ,


# said on 27 August, 2006 08:53 PM
You've been kicked (a good thing) - Trackback from
# Jimmy Junatas said on 05 December, 2006 09:11 PM
Hi Simone Do you have a schedule on the next release of the AutoCompleteTextBox? Thanks for all the great work.
# simoneb said on 05 December, 2006 10:03 PM

Hi Jimmi, I haven't yet released the binary since I'm planning to group all my projects into a single assembly. At the moment the source code is available at It's still a work in progress, due to other controls I had to add dependency to the MS Ajax assembly that is not truly required by the AutocompleteTextbox, but I will maybe find a better solution to group the projects together.

This site



This Blog




  • MaximumASP