DotNet Academy of Rajesh Rolen

Solutions by Rajesh Rolen

Disable Page To Be Cached (disable back button of browser)

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");
}

0 comments:

Post a Comment

About this blog

My Blog List

Advertise On This Site

Site Info

Advertise on this Site

To advertise on this site please mail on RajeshRolen@gmail.com

Information Source

About

Pages

Dot Net Academy

Advertis in This Area of Site

Powered by Blogger.

Followers

Search This Blog