Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
{
    DropDownList1.SelectedIndex = DropDownList2.SelectedIndex;
}



it doesnt work. nothing to change. how can i solve this problem
Posted
Comments
Are you sure that the index you are trying to set exists in DropDown 1?
jkirkerx 30-Sep-14 17:14pm    
Did you know that the selection index is the position number of the choice numbered from the top as 0 , 1 2 3 4 5

And not the value of the option element, or the text of the option element.

Did you set the control to auto postback?
Laiju k 20-Oct-14 8:03am    
what are trying to do

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900