在asp.net中,怎么样能让在返回上一页时页面失效!

解决方案 »

  1.   

    <   %     
      Response.Buffer   =   True     
      Response.ExpiresAbsolute   =   Now()   -   1     
      Response.Expires   =   0     
      Response.CacheControl   =   "no-cache"     
      %   >     
      或者   
        
      <   html>     
      <   head>     
      <   meta   http-equiv="Expires"   CONTENT="0">     
      <   meta   http-equiv="Cache-Control"   CONTENT="no-cache">     
      <   meta   http-equiv="Pragma"   CONTENT="no-cache">     
      <   /head>     
      

  2.   

    asp.net 中 使页面立即过期
                     Response.Expires = 0;   //页面缓存期。以分来作单位。
                     Response.AppendHeader("pragma","no-cache"); //添加头。 
                     Response.AppendHeader( "cache-control","private");
                   Response.Cache.SetExpires(DateTime.Now.AddSeconds(-60));
                   Response.Cache.SetCacheability(HttpCacheability.NoCache);
                   Response.Cache.SetValidUntilExpires(false)