I have an asp.net page that has the following form fields:
- Dropdown 1. This drop down receives the data via SQL data source.
- Dropdown 2. Based on the selection of the drop down 1, this drop down queries to the database using SQL datasource and is populated.
- A panel control that is placed below drop down list 2 and it has a set of the controls.
My problem is there may be a situation when nothing is returned from the datasource of drop down 2, I want to show an Item "No Data found" in the dropdown list 2 and simultaneously hide the panel that is placed below dropdown 2.
Can someone please let me know how this situation can be handled.
Appreciate the help.
Thanks, Yagya