INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

ASP 101

Searchable combo boxes by AWithers
Posted: 7 Aug 02 (Edited 8 Aug 02)

I didn't think this could be done on the web but I have recently found a posting about it and thought it may be of use to other users.

The problem is how do you make a combo box react like a combo box in vb so that you can start typing the option you are looking for and the selected option moves to the first option that matches all the characters typed

I found the following at http://www.jguru.com/faq/view.jsp?EID=478708

Another solution at MSDN

http://msdn.microsoft.com/code/default.asp?url=/msdn-files/026/002/303/Source%20Files/listbox_htm.asp

A couple of things to note regarding the first one

using backspace removes the last letter from the string and thus can remove all letters to start the search again

the search string is reset when the combo gets focus again

I have used the first one and found it very useful(my users were always complaining about how the combo boxes operate on our intranet site...but not any more)

Andy

P.S. A solution to a similar problem in vbscript and can be found at Thread333-109000

Back to Microsoft: ASP (Active Server Pages) FAQ Index
Back to Microsoft: ASP (Active Server Pages) Forum

My Archive

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close