I have a webform with a dropdown list bound to a sql datasource and a listbox bound to a second datasource using the dropdown box to modify what the listbox is populated with (does this make sense?). Everything works great as far as correctly populating the dropdown and susequently, the listbox, however when a specific listbox item is chosen the form always shows the item at itemindex 0.
Here is how it works:
The page loads. The user selects a category from a dropdown list. Based on the category selected the listbox is populated with the appropriate pdf documents. The user then selects a listbox item and clicks a "View Document" button. The site then loads a popup window of the selected .pdf document.
No matter what item is selected in the listbox, the item located at itemindex 0 is opened.
* Enable ViewState is set to "True"
* Both datasources and both controls are configured within the IDE (VWD) and not coded in the code behind. (Although I suspect the solution will have me hand coding all of this)
Please help with this, I have worked hard on this interface for this page and really like how it has turned out... it just doesn't quite work yet.
If there is any confusion regarding my description I can provide a hyperlink to the site itself. Though since it does not work quite yet, I hesitate to do that unless someone thinks it would be helpful.
Thanks in advance.