Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DropDownListBox size /tool tip 1

Status
Not open for further replies.

ksbrace

Programmer
May 13, 2000
501
US
Hello,
I have 3 dropdownlistbox controls that contain ratings w/descriptions( multiple sentences ). I would like to reduce the size of the list box by just having the ratings in the listbox until the user selects one of them and then have the description appear. Or even a tooltip, but I can't seem to get anything to work. Any ideas or help would be greatly appreciated. Thanks in advance!!!
Kelly
 
1. create a Hashtable object to store the name/value pairs of the "ratings" and "descriptions".

2. the DataSource of your web controls can be the "name" portion of the hashtable for both the Text and the Value.

3. Create an OnChange() event for the controls...

4. the OnChange() event will get the current selected value of the control; iterate through the hashtable to find the match...when it matches...get the "value" from the hashtable (i.e. your description) and put set the Text attribute of a Label control to this value.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top