public class PageBase : Page
{
public PageBase() {}
protected override OnLoad( EventArgs e ) {
Response.Cache.SetNoStore();
base.OnLoad();
}
}
然後把所有的頁面從這個頁面繼承,查找替換就行了
或者在Global裏面:
protected void Application_BeginRequest(Object sender, EventArgs e)
{
HttpContext.Current.Response.Cache.SetNoStore();
}
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script>