Hi,
I want to display the values in DropDown2 but it have to display based on the selection in Dropdown1.
Eg: DropDown1 contains 2 values(A,B) if i choose A then Dropdown2 have to display 1A 2A
if (DropDownList1.SelectedItem.Text.Equals("A"))
{
DropDownList2.Items.Add(new ListItem("1A", "0"));
DropDownList2.Items.Add(new ListItem("2A", "1"));
}
else if(DropDownList1.SelectedItem.Text.Equals("B"))
{
DropDownList2.Items.Add(new ListItem("1B", "0"));
DropDownList2.Items.Add(new ListItem("2B", "1"));
}
I have check the Autopushback= true for both the dropdown. Please help me out on this and thanks in advance!!!