N
Northern
I have an ASP DropdownList populated. What I want is to
select a new item, in my code, by set a datavale to
dropdownlist's selectedItem.Value property. I did the
following:
MyDropdown.SelectedItem.Value = "value 1"
Even though the "value 1" is in the dropdownlist's data
value collection, the dropdown's datatext doesn't change.
What am I doing wrong here? How should I do this?
Please help!
select a new item, in my code, by set a datavale to
dropdownlist's selectedItem.Value property. I did the
following:
MyDropdown.SelectedItem.Value = "value 1"
Even though the "value 1" is in the dropdownlist's data
value collection, the dropdown's datatext doesn't change.
What am I doing wrong here? How should I do this?
Please help!