Im building an order form for a client, which has three drop down lists which are dependant on the selected data from the previous dropdown list. eg ddl1 determines what is available in ddl2, ddl2 determines what is available in ddl3.
The first two drop down lists are populated using the VS2008 SQLDataSource, which works great, the third I then populate using the SelectedIndex of the second ddl. But the problem I'm having is that when I first load the page, ddl1 and ddl2 have default values loaded into them (the first in the list) but I cant get the SelectedIndex value out of ddl2 for some reason until I select another option in ddl2 thus creating it to postback.
Any thoughts?
Cheers