Welcome to TSHAK.NET Sign in | Join | Help

Multiword AutoComplete for the AJAX Control Toolkit

The ASP.NET AJAX Control Toolkit has a cool control called the AutoComplete control (live demo). When a user starts to type in a word it calls a service to get suggestions for the word.

Unfortunately this control does not allow for multiple words. That is, it will treat the entire contents of the Input box as one word.

To fix this, I added a property called MultiWordSeperator which allows you to define one or more characters to use as a word seperator. Here's how the control works when you set this property to a comma (","):

Now the suggestions are only based on the actual word, not the entire string.

UPDATE: This is now available via an AJAX Control ToolKit Patch.

Download The Patch

Installation Instructions Curtosy Of Jon Milet Baker

Published Saturday, March 10, 2007 4:09 PM by tshak

Comments

Friday, March 30, 2007 4:44 PM by Delay's Blog

# AutoComplete++ [How to: Create a multi-word auto-complete text box]

By default, the AJAX Control Toolkit's AutoComplete extender doesn't have a notion of "words" and will
Friday, March 30, 2007 8:25 PM by MS MossyBlog

# AJAX AutoComplete++

I picked this one up from the MSDN Blogsphere (sorry to echo back to MSDN`ers) By default, the AJAX Control
Friday, April 20, 2007 8:38 AM by TSHAK

# AJAX AutoComplete Update

A little over a month ago I updated the ASP.NET AJAX Control Toolkit with functionality that allows for...

# Clockwork Objects » Blog Archive » Tim Shankarian’s MS Ajax Autocomplete Patch (and how to use)

Anonymous comments are disabled