I have 2 databounded dropdownlist. They have the same value(all months).
I want that, if a user choose (in the first Dropdown) for example april then the second Dropdown should jump automatically to April.
The only thing I could think of was:
protected void ddMonthfrom_SelectedIndexChanged(object sender, EventArgs e)
{
ddMonthfrom.SelectedItem.Text = ddMonthto.SelectedItem.Text;
}
It does not work. When I click on April the second Dropdown does not Change.
try
ddMonthto.SelectedValue = ddMonthfrom.SelectedItem.Value;