S
Simon Harvey
Hi all,
Am I being really stupid here:
myDropDown.SelectedIndex = 2
I think this line should set the dropdown control's selected item to 2. But
nothing seems to be happening on the page. The dropdown just maintains its
default value (element 0).
Do I have to do something else to get this control to work? The only other
aspect that may be effecting this piece of code is the fact that the drop
down is contained within a user control that itself is contained in a user
control. But I don't see why that should matter.
Do I have to do something with viewstate or something tricky like that?
Many thanks to anyone who can help
Kindest Regards
Simon
Am I being really stupid here:
myDropDown.SelectedIndex = 2
I think this line should set the dropdown control's selected item to 2. But
nothing seems to be happening on the page. The dropdown just maintains its
default value (element 0).
Do I have to do something else to get this control to work? The only other
aspect that may be effecting this piece of code is the fact that the drop
down is contained within a user control that itself is contained in a user
control. But I don't see why that should matter.
Do I have to do something with viewstate or something tricky like that?
Many thanks to anyone who can help
Kindest Regards
Simon