T
tshad
Is there a way to stop the system from setting the SelectedIndex of a
dropdownlist to 0?
I have it set at -1 in my code and if I push a button (that does nothing in
my test), during PostBack it will be set to 0.
I know that when I initially bind it from a table, it will set the
SelectedIndex to 0. I then have to procedurally set it to a -1. But then
if I push a button that does nothing, it will reset it list to 0, if it
isn't set to something else. If it were set to a 2 or a 3 it will still
show it set to a 2 or 3. If it is set to nothing (-1), it will set it to 0.
Is there a way to stop this behavior?
Thanks,
Tom
dropdownlist to 0?
I have it set at -1 in my code and if I push a button (that does nothing in
my test), during PostBack it will be set to 0.
I know that when I initially bind it from a table, it will set the
SelectedIndex to 0. I then have to procedurally set it to a -1. But then
if I push a button that does nothing, it will reset it list to 0, if it
isn't set to something else. If it were set to a 2 or a 3 it will still
show it set to a 2 or 3. If it is set to nothing (-1), it will set it to 0.
Is there a way to stop this behavior?
Thanks,
Tom