I have a UserControl with two dropdowns. course and subcourse.
in my aspx page i am using usercontrol. when i save details and clear controls data
or reset that time i want to reset UserControl dropdowns selected item as default
e.g. --Select Course--
and --Select Sub-course--
please give me a solution for this.
thanx in advance.
Create a reset function in user control
add this line to select whatever the value of item you have.
ddl.SelectedValue = "2";
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)