<button onClick="document.location.reload()">刷新</button>
加reload进去

解决方案 »

  1.   

    Response.Write(" <script> alert('添加成功');window.location.href='Home.aspx';window.close(); </script> "); 
    少了链接吧
      

  2.   

    Response.Write(" <script> alert('添加成功');window.location='Home.aspx';window.close(); </script> "); 我这句是在1.aspx里面的一个BUTTON事件里面写的。
      

  3.   

     protected void Button1_Click(object sender, EventArgs e)
        {
    Response.Write("<script>alert('添加成功');window.location='Home.aspx';window.close();</script>");
        } 这么写为什么不行?每次关闭的时候还提示什么重试什么的
      

  4.   

    Response.Write("   <script>   alert('添加成功');window.opener.location.reload();window.close();   </script>   ");  ------------CSDN竹子专享签名功能-----------------------------------------------------
    如果问题解决,请结贴,谢谢!不知道怎么结贴?请单击我
    如有仍有其它问题,请继续顶贴。
    ------------------------------------------------------------------------------------