DropDown List Question??

  • Thread starter Thread starter Maximus
  • Start date Start date
M

Maximus

Hi Everybody,

I have a dropdwonlist on a page when I select an item it fires the
OnSelectedIndexChanged Event and where I redirect myself to a different
page. Now I click the back button of the browser and select another item
from the dropdownlist, but now the OnSelectedIndexChanged Event is not
fired. I am confused why it would'nt do it. Should it ideally do it if
yes then why doesnt it happen in my case. If not is there another way I
can do it.

Any help will be greatly appreciated.

Thanks.
 
I bet the item you're selecting the second time is the default item to begin
with.

Let me explain: I tried this with 5 items in the dropdown. On the first
request, the selectedindexchanged event fires if I choose ANY item other
than the one that is currently selected (item 0 selected by default, I chose
item 3). When I hit the back button the appropriate item is already selected
(item 3). When I choose another item in the list (1, 2, or 4), the event
fires again as expected UNLESS I choose the originally selected item (item
1).

I think an easy fix is to implement a better default first item such as
"--Please select one--" That way the user would have no business selecting
that item the second time around and you won't care if the
selectedindexchanged item doesn't fire in the even that they do select it!
 
Back
Top