Listbox Resources

compiled by Peter Brunone


This is intended to be a comprehensive, current list of articles, scripts, and components (free and commercial) that have to do with listbox, dropdown, and combobox implementations. Please let me know if you find a useful resource that is not listed here.


 
 
Dynamic Dependent Lists/JScript
generated from Relational Database

(free)
This is a fairly complex code sample written in VBScript for Classic ASP. It produces two linked listboxes (Category->Subcategory) whose data stores are preloaded into arrays from an ODBC DSN when the page loads.
IE Multiple Select List Box
(free)
Create a multiple-select listbox that doesn't require CTRL+Click. Simply click an item to select, and click again to de-select. Works in IE only.
Dynamic Client Side
Dependent List Boxes

(free)
Dual dependent listbox demo; maintains the vertical size of the second listbox regardless of array length, and inserts a placeholder row at the beginning of the list. Code download includes the ASP/VBScript server-side code, the client-side Javascript code, and a sample database.
Cheap Tricks: An Even Better
Dynamically-Linked Listbox

(free)
Triple dependent listbox demo. Demonstrates Javascript array-based logic to create any number of linked listboxes. Classic ASP/VBScript server code, downloadable in a zip file. Works with pubs database from SQL Server, or with the sample Access 2000 DB you can download separately.
Remote Scripting Dynamic
Dependent List Box

(free)
Utilize Remote Scripting to populate a dependent listbox. Very cool, and fairly quick too! Keep your data back at the server and pull only what you need, without reloading the page. Written in Classic ASP/VBScript.
Smart DropDownList A free ASP.NET control by Senjaya Tirtaputra; this DDL works in IE only, and will filter the selection based on multiple keystrokes (instead of just the first letter).
DBCombo A commercial combo box that incorporates remote scripting to fetch data from the server as needed. Works only with Internet Explorer (downgrades for other browsers, but requires a postback for every retrieval).
WebCombo A commercial combo box. Supports paging like DBCombo, but again is largely an IE-only solution (works more elegantly in Mozilla than DBCombo, but still requires a postback for retrieval).
ComboBox Control
(free)
This free combo box control from Andy Smith of Metabuilders is adaptable to IE and Netscape, and comes with source code.