防刷新重复提交/防后退方法

A)location.replace('newurl')

B)<body onbeforeunload="window.location.replace('')">

C) Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache)

D)  <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
     <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> 
     <META HTTP-EQUIV="Expires" CONTENT="0">
E)  

     Response.Buffer=true;
     Response.ExpiresAbsolute=DateTime.Now.AddSeconds(-1);
     Response.Expires=0;
     Response.CacheControl="no-cache";

posted @ 2009-01-15 22:04  T#S  阅读(239)  评论(0编辑  收藏  举报