INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

HANDLE


PASSWORD
Remember Me
Forgot Password?

Come Join Us!

  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • Turn Off Ad Banners
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

E-mail*
Handle

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

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Member Feedback

"...I have tons of books, have book marked tons of tutorials, which have helped, but this forum has answered those "impossible to find" solutions. I am thrilled with this site..."

Geography

Where in the world do Tek-Tips members come from?

Microsoft: Active Server Pages (ASP) FAQ

ASP 101

Searchable combo boxes
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: Active Server Pages (ASP) FAQ Index
Back to Microsoft: Active Server Pages (ASP) Forum
My FAQ Archive
Email This FAQ To A Friend

My Archive