Tim Shankarian’s MS Ajax Autocomplete Patch (and how to use)

29 March 2007, 18:31, by Jon

Contrary to the advise I have received from several fellow developers (and never being one to miss a challenge), I have decided to ignore all advise and attempt to use the Microsoft Ajax framework with my current .Net project for TktIt.com. The MS Ajax Frawework is extended to provide functionality such as Autocomplete etc using the AjaxToolKit. Although a lot of these are excellent, (like the pop-up calendar control) the Autocomplete feature is poor compared to many others out there. However, thanks to Tim Shankarian, it has got a little better!

Tim’s site very briefly explains how to use the new updated control extender, with a link to the control source but does not cover how to install it. I thought I would quickly cover the steps below to help you.

  1. Firstly you will need to read Tim’s blog entry and download the patch . To actually use this, you are going to have to re-compile the AjaxControlToolkit.dll, so we will also need to download the latest AjaxControlToolkit, but we need to ensure we download the version WITH source code.
  2. You then need to unzip all the contents into a folder named AjaxControlToolkit under your Visual Studio 2005/Projects (I use Visual Studio 2005 Pro, but I assume you can do this with Visual Web Developer too). Unzip Tim’s patch into the ..Projects/AjaxControlToolkit/AjaxControlToolkit/Autocomplete folder and overwrite the three existing files.
  3. You can now recompile the AjaxControlKit Project. Open the full solution (or AjaxToolKit sub-project) in Visual Studio / Visual Web Develop, make sure the build configuration is set to ‘Release’ and build the project.
  4. You can now find and use the AjaxControlToolKit.dll under the bin/release directory in the sub-project. You can either add this file to your tollbox (using ‘choose items’) and then drag and drop all controls (including the patched AutocompleteExtender) or simply copy this dll (and resource files) to your project /bin directory.
  5. The patch adds an additional MultiWordSeparator attribute to the <AjaxControlToolKit:AutoCompleteExtender> control. If you set this for example to a “,” (comma) you can then auto suggest based on a comma separated list. For example I have used this patched control to help auto-suggest comma separated tags (See picture).

I believe the authors of the AjaxControlToolkit plan to release an official version that supports multiple words as well as a feature to pass back additional information. In the mean time thanks to Tim we have a workable solution.



There are no comments yet.



Leave a comment

About Jon

Jon started his career hacking code on his Sinclair Spectrum before moving on to more sophisticated machines ( ...such as a Commodore 64 ). He graduated from the University of Kent in 2000 with a degree in Computer Science and since then has worked in finance and education before co-founding Go Tripod. He is passionate about usability and design and his favourite development technologies are Ruby, and Objective-C/Cocoa. When he is not sat at his desk he is standing on his head doing yoga, refining his taste for food or on an adventure exploring the great outdoors.

Go Tripod Ltd

Go Tripod Ltd is a UK-based development company working with some of the most exciting software technologies around. Simon Ashley, Jon Baker and Colin Ramsay are the brains behind projects such as Stubmatic, and are developing bespoke web, mobile and desktop software for clients with household names. We believe in good service as well as good software, and we’re eager to work with people who feel the same.