There are several similar questions posted here but none that address my question exactly. Here is the (simplified) scenario:
Page1.aspx:
The user lands on Page1.aspx, and clicks a button. During the postback
, the user is redirected to Page2.aspx (via a Response.Redirect
).
Page2.aspx
In the page load
event for Page2.aspx, some validation occurs, and then a further redirect to Page3.aspx occurs (again via Response.Redirect
).
Page3.aspx Simply displays some information to the user. No problem there.
Now the problem occurs when the user is on Page3.aspx, and hits the back button in their browser. In this scenario, I want Page2.aspx to re-load, so the validation is carried out once again. However, Page2.aspx is effectively bypassed and Page1.aspx is re-loaded (and only when I turn off the caching for the page). Turning off the caching for Page2.aspx does not make a difference.
So, my question is, is there a way to get Page2.aspx to run when the user clicks the back button in their browser?