Click here to Skip to main content
15,915,869 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
hi,

i would like to add a search module in my web application. I would like to use drop down list. I would like to know how to connect more than one drop down list in the same page.

Example :

Holiday Type : Honeymoon,shopping (select in a drop down list)
Budget : 300-400, 400-500, 500-600 (select in a drop down list)

Result : a suggested holiday pakage.

I'm new to asp.net. I think that 'if else' method can be used. Would be nice if anyone could share any related source codes. Thank you.
Posted

1 solution

If you mean that the content of one list box is dependent upon the value selected in the previous list box then try this: CascadingDropDown[^].

Howver, if you simply mean that the final result depends upon the selections in the first few then add a button and, in the OnClick event, examine the selected items and populate, for instance, a text box with the result (however you determine that result).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900