Board index » Web Programming » Event handler not fired after using browser back button bug??? ...or What!!!

Event handler not fired after using browser back button bug??? ...or What!!!

Web Programming320
When I display a page with imagebuttons, clicking on a link fires the event

associated with that link and takes me to the correct page. When I use the

browser back button to go back to the origonal imagebutton page, and press a

different imagebutton, no event is fired and the page for the first

imagebutton loads.



See the problem at:

www.site2020.com/PhotoBrowserApp/default.aspx



If I use the "Thumbnail View" button to go back, everything works fine.



If refreash the page after using the browser back button, everything works

fine.



Thanks for your help



Earl


-
 

Re:Event handler not fired after using browser back button bug??? ...or What!!!

Got the solution, and it is not a bug...sorry microsoft. In my case, I was

storing a global variables class in a session variable. This variable would

time out and lose its values, so when I corrected this issue, the link

problem also disappeared. I think the session variables in my global

variables class where not being maintained properly during postback, which

could cause the page to load its controls in a different order and then not

raise a postback event.



Earl



"Earl Teigrob" <earlt777@hotmail.com>wrote in message

Quote
When I display a page with imagebuttons, clicking on a link fires the

event

associated with that link and takes me to the correct page. When I use the

browser back button to go back to the origonal imagebutton page, and press

a

different imagebutton, no event is fired and the page for the first

imagebutton loads.



See the problem at:



http://www.site2020.com/PhotoBrowserApp/default.aspx?MediaPath" rel="nofollow" target="_blank">www.site2020.com/PhotoBrowserApp/default.aspx=%2fBy+Event%2f



If I use the "Thumbnail View" button to go back, everything works fine.



If refreash the page after using the browser back button, everything works

fine.



Thanks for your help



Earl













-