Clear Browse History

Posted by Venkatesh under ASP.NET on 8/30/2010 | Points: 10 | Views : 6804 | Status : [Member] | Replies : 1
Hi,

Can any one tell me How to clear browse history using c# in asp.net after the

page refreshing.




Responses

Posted by: Peermohamedmydeen on: 8/30/2010 [Member] Bronze | Points: 25

Up
0
Down
Hi Venkatesh,

The below snippet may be helpful to you.

Use the code in page_Load event.

Response.Cache.SetCacheability(HttpCacheability.NoCache);

Response.ExpiresAbsolute = DateTime.Now.AddMonths(-1);


Thanks
PMM :)


Venkatesh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response