HI,
You dont have to write the "IF" or "SELECT CASE" code to test each selected value..
all you have to do is to set the Autopostback property of the dropdownlist1 equal to TRUE.... then put this code in the dropdownlist1 DropDownList1_SelectedIndexChanged handler:
private void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e)
{
this.DropDownList2.SelectedIndex=this.DropDownList 1.SelectedIndex;
}
Best Regards,
Ruel
================================================== ======
Hi everybody,
I am having a drop down list with items 1,2,3.. and another dropdown list with items apple,orange and lemon..
If i select item 2 in the first dropdown list i need to get orange as the selected item in the second dropdown list.
if i select item 3 in the first drop down list, i need to get lemon in the second drop down list automatically...
I am using asp.net and c#.net....
Please help me..
Regards,
Mathew..