write following code in page_load function of page to with you not want to be cached.
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d);
Response.Expires = -1500;
Response.CacheControl = "no-cache";
if (Session["SessionId"] == null)
{
Response.Redirect("loginpage.aspx");
}
Disable Page To Be Cached (disable back button of browser)
Posted by
Rajesh Rolen
at
Thursday, June 11, 2009
Labels: ASP.NET
0 comments:
Post a Comment