By Shawn Kendrot, Software Engineer, Fort Collins, Colorado, USA

Download the script.

Code Sample

Added pieces include:
*Tasks.LocatorTask.cs (found in the Tasks project/assembly)
*AutoComplete WebService
*Shawnville.mxd (to serve as a MapService) and Shawnville.mdb

The Task control contains a dropdown box that allows the user to select which layer they would like to search. The user can also select "Any" to search all layers.

The Locator Task utilizes the AjaxControlToolkit AutoComplete control to help the user fill in the field value to search for.

Included with the AutoComplete WebService is an additional caching capability to ensure fast results.

The Task and AutoComplete WebService are ready for your own data with minimal changes.

Please read the readme.txt file that is included.