当我注册完以后 用
 Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>location.assign('succs.aspx')</script>");
跳到别的网页,出现了后退按钮,但点后退,并没有产生重复提交效果,而是只在succs.aspx页面刷新了一下。是什么原因呢?虽然这样貌似,可能能防止重复提交,但能不能不让他产生后退按钮呢。

解决方案 »

  1.   

    Page.ClientScript.RegisterStartupScript(GetType(), "", "<script>location.replace('succs.aspx');history.back();location.replace('succs.aspx');</script>")
      

  2.   

    Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);  
    Response.Expires = 0;  
    Response.Buffer = true;  
    Response.ExpiresAbsolute = DateTime.Now.AddSeconds(-1);  
    Response.AddHeader("pragma", "no-cache");  
    Response.CacheControl = "no-cache";  
    window.open打开一个新窗口.然后利用window.opener.close()关闭父窗口
      

  3.   

     Response.Buffer = true;
                    Response.ExpiresAbsolute = System.DateTime.Now.AddHours(-2);
                
                    Response.CacheControl = "no-cache";
                    Response.AddHeader("pragma", "no=cache");
    页面加载时 page_load中清除缓存
      

  4.   

    给你个简单的 既提示,也防刷新#region 弹窗并跳转,防止刷新
    public static void AlertLocation(Page page, string p, string math)
    {
    page.Response.Write("<script language='javascript'>alert('" + p + "');window.location.href='" + math + "';</script>");
    }
    #endregion
      

  5.   

    Response.Redirect("xx.aspx");//目的页面