How to expire previous page?
-
Hi All, i m using c#,asp.net with 1.1 framework. i m trying that user must be able to navigate only in forward direction, i.e. clicking on back button must display an error page like "Page Expire". how can i implement this fuctionality...
Thanks in advance... Regards... Amit
-
Hi All, i m using c#,asp.net with 1.1 framework. i m trying that user must be able to navigate only in forward direction, i.e. clicking on back button must display an error page like "Page Expire". how can i implement this fuctionality...
Thanks in advance... Regards... Amit
Hi there, Write the following header settings in Page Load event, Page will always rendered from the server rather than from cache... and displays a message stating that page is expired.
Response.AddHeader ("Pragma", "no-cache"); Response.Cache.SetCacheability (HttpCacheability.NoCache); Response.Cache.SetExpires (DateTime.Now.AddHours (-1));
Confidence comes not from always being right, but from not fearing to be wrong. Mihir..