Autocomplete listbox

Hi Experts,
    I'm fairly new to asp.net and I would like to provide an autocomplete-style search capability in a listbox that has hundreds of items in it.  The web listbox control's default behavior navigates the listbox by the first letter only, which in this case is insufficient.  
    I thought to use a textbox, and then findstring with the listbox - and that's when I discovered that the web control listbox doesn't have findstring.

    Does anyone know another (preferably quick to implement) method?


Thanks in advance!
ghl
gailhlAsked:
Who is Participating?
 
Type25Commented:
Javascript will be your only way of doing this......

and no it's not particularly easy....  

You'd have to create a textbox and then a listbox next to it, and then on the onChange property of the textbox, filter the listbox depending on what has been entered in the textbox.

0
 
gailhlAuthor Commented:
Thank you!

Wish there was an easier way but I guess I'll just have to bite the bullet...

Much appreciated,
GHL
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.