62,025
社区成员
发帖
与我相关
我的任务
分享
<asp:Button ID="Button2" runat="server" Text="测试" OnClick="Button2_Click" />
protected void Button2_Click(object sender, EventArgs e)
{
Response.Write("<script>var returnStr=window.showModalDialog('ShowAllComm.aspx');</script>");
}
<asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" Text="确定" />
protected void btnOK_Click(object sender, EventArgs e)
{
Response.Write("<script> window.opener.location.href=window.opener.location.href;window.close();</script>");
}