PageLoad when BACK is clicked

  • Thread starter Thread starter Viktor Popov
  • Start date Start date
V

Viktor Popov

Hi everybody,

I would like to ask you if someone knows how to make a page to be loaded
again when th BACK Button of the Browser is clicked. What I mean is:
WebForm1(Load)->click link to
WebForm2->WebForm2(Load)->ClickBACKbuttonOFtheBROWSER->WebForm1(Load)

Thank you in advance!

Best regards,

Viktor
 
Hi Viktor:

It's possible the page is being cached by the browser or even the
server (do you use an @ OutputCache directive?). If your page is
sensitive and you need Page_Load to always excute, you might look at
Response.Cache.SetCacheability to avoid client side and proxy server
caching.
 
Hi Scott,

Thank you for the reply. I have included <%@ OutputCache Location"None" %>
and it works.

Thank you!

Viktor
 
Back
Top