M
moondaddy
I have a dropdown combo box on a form and I have its AutoPostBack property
set to true. When I select something from the list it does a postback and
then the Page_Load event fires followed by it's SelectedIndexChanged event.
However, when I go back to this control again and select the first item in
the list, it does a postback and the Page_Load event fires, but the
SelectedIndexChanged doesn't fire. Why does the SelectedIndexChanged get
skipped when selecting the first item in the list?
In summary, I have a dropdown list. I select the 3rd item in the list and
the SelectedIndexChanged fires like it should. As I step through the code I
see the selected index = 2. Now when I go back and select the first item in
the list and step through the code I can see the selected index =0 (changed
from 2), but the SelectedIndexChanged doesn't fire.
How can I resolve this?
Thanks.
set to true. When I select something from the list it does a postback and
then the Page_Load event fires followed by it's SelectedIndexChanged event.
However, when I go back to this control again and select the first item in
the list, it does a postback and the Page_Load event fires, but the
SelectedIndexChanged doesn't fire. Why does the SelectedIndexChanged get
skipped when selecting the first item in the list?
In summary, I have a dropdown list. I select the 3rd item in the list and
the SelectedIndexChanged fires like it should. As I step through the code I
see the selected index = 2. Now when I go back and select the first item in
the list and step through the code I can see the selected index =0 (changed
from 2), but the SelectedIndexChanged doesn't fire.
How can I resolve this?
Thanks.