A: 

I would create two combobox controls... One for the "where", then, on the InteractiveChange event by the user to post-back to the page using that answer for the second combobox of locations based on the "where" value of the first combo.

DRapp
Thanks. That was actually our original solution but we couldn't figure out how to program the dynamic code that would make the second combo box change its values based on the selection from the first box.
SQLChicken
+1  A: 

Sorry not to respond back sooner, busy, and wanted to dig up a sample that did just what you were needing.

Create two comboboxes on your form. You can bind either fixed values, or from a table on the first combo. Then, from the property/events sheet, first set the "AutoPostBack" to TRUE, then on the events, click for the "SelectedIndexChanged" event to bring up some code.

The "Sender" object parameter will be the combobox itself, so you'll be able to analyse the property settings via debugging to find what key/value was chosen.

Then, run whatever query from your data querying control, business object, or whatever that gets your results, such as to a DataSet or DataTable.

Finally, set the datasource of your second combo to the above result query, set dataTextField and DataValueField and issue DataBind() to the combo.

That should get exactly what you need.

Then, when someone makes a selection from the second combo, you can have code within ITS "SelectedIndexChanged" event (also based on its AutoPostBack or actual submit button on the form).

Hope this helps.

DRapp
Awesome, thank you very much!
SQLChicken