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>");