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>