How to put dropdown values into another dropdown
Hi,
I've hit a bit of a block, can't figure out how to code around this in a decent way, but there must be a way to do it as it seems like a common enough need.
I have a dropdown box at the top of my ASP.NET page, it's populated with the values of a simple query that returns a customer code, a project number and a project name.
When the user selects the project they want to change in the dropdown and hit the 'Edit Project' button, I want to populate another dropdown box below that has a list of customers, and start on the customer code that they've selected. Then the second box below would have a project name, and would be filled in with the project name. Both of these lower boxes are data they could modify, effectively assigning a project a new customer code or a new name.
What I can't figure out is how to do the customer select dropdown box. If I have to put the code in the page to bind the list of customers before I know which project they select, how can I select the right customer code after they hit the button?
Hopefully that makes sense, my ASP.NET is getting a lot better but this seems like more of a logic problem almost.
Pat
|