在新打开的窗体中加入如下代码即可

<body onunload="window.opener.location.reload();">

刚刚使用方法时发现会弹出提示框,后来查资料发现用

window.opener.location.href=window.opener.location.href;
即不会弹出

 

在Button事件中输入:

Response.Write("<script>window.opener.location.href=window.opener.location.href;window.opener=null;window.close();</script>");

相关文章:

  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2022-03-09
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
相关资源
相似解决方案