how to detect back button from client.....
-
Hi guys, When user clicks "back" button, it does not generate a Page_load() event to the server. Is there anyway to detect user click onto back button in ASP.net? Thanks!
-
Hi guys, When user clicks "back" button, it does not generate a Page_load() event to the server. Is there anyway to detect user click onto back button in ASP.net? Thanks!
Well when a user clicks back he is actually more than likely viewing a cached page that resides on his computer from the last time he accessed the page. in ASP 3.0 we woud use Response.AddHeader "Pragma", "no-cache" Response.AddHeader "Cache-Control", "no-cache" In ASP.NET we use Response.Cache.SetCacheability(HttpCacheability.NoCache) Response.Cache.SetExpires(Now()) Hope this helps, put it some where near the top of the document!:) - Michael Fasani www.michaelfasani.com