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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populate List box beased on combo box

Status
Not open for further replies.

dkohli

MIS
Jan 5, 2004
4
US
Hello,
I am new to ASP. I have a list box which gets its values from a table in the database. However I want the values of the list box based on what I click on the combo box as well.

I have a combo box Category:
Web
Store
Phone

I have a category table :
Category Sub Category
Web Online
Store Store1
Store Store2
Store Store3
Phone Phone1

Then I have a list box for subcategory where if I select Store in the category combobox, the list box should automatically get populated by store1, store2, store3

So basically I want to pass the value of the combobox in my where clause in my sql query to the database. How can i do it on the fly?

Any help will be greatly appreciated.
Dkohli
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top