时间:2021-07-01 10:21:17 帮助过:25人阅读
<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>");