My Page_Load events are being called when I leave the page, so If im on Page1.aspx and I click to a link for Page2.aspx, the Page_load for Page1 is being fired. On a few of my pages I have some complex tasks being done in the Page_Load, which I dont need to be done when leaving the page.
Is there a way that I can capture the fact that I'm leaving the page? I would have thought that getting the request object at this point would show tht I had requested Page2 but it doesnt. It shows Page1.aspx.
Thanks for your help!
View Complete Post