Intro
From time to time, I get the chance to take off the "database guy" hat I usually wear around the office and pretend I'm a developer. A good deal of that coding involves some sort of web-based tool or another so, being a Microsoft shop, I figured it was time for me to get up to speed on their implementation of AJAX. For the last couple of weeks, I've been playing around with the AJAX Control Toolkit for ASP.NET (http://www.asp.net/ajax/) and today had the chance to put one of those controls (the AutoComplete extender) to work.
I needed to create a web-based company address/phone book to throw on our intranet site. We've nearly doubled the number of employees on the payroll over the past several months, and with everybody spread across about a dozen or so field offices, it can be a pain finding somebody when you need them, especially when you don't know their full name. If only there was some way to allow users to type in the parts they knew and dynamically generate a list of users with names that fit that criteria... something that might automatically complete their search string...
In case you don't know (or know it by some other name, if you're a non-Microsoft person), the AutoComplete extender attaches to a TextBox control and, as the user begins to type, gives a list of suggestions he can click if he's too lazy to type in the whole phrase. You've seen it in the Google toolbar, etc. Pretty damn handy tool, if you ask me. You can see a sample of it (along with a list of properties) at http://www.asp.net/AJAX/AjaxControlToolkit/Samples/AutoComplete/AutoComplete.aspx.