Father
1.新建一个按钮
复制代码代码如下:
<asp:Button ID="btnFresh" runat="server" Text="" OnClick="btnFresh_Click" />
2.JS
复制代码代码如下:
<script type="text/javascript">
function btnFreshData() {
document.getElementById("btnFresh").click();
}
</script>
Son
1.cs
复制代码代码如下:
ClientScript.RegisterStartupScript(Page.GetType(), "", "<script language=javascript>window.opener.btnFreshData();window.open('','_self');window.close();</script>");