日期:2014-05-18 浏览次数:20420 次
<asp:Button ID='btn' runat="server" OnClientClick="javascript:window.opener.location=window.opener.location;window.opener=null; window.close();" />
------解决方案--------------------
button事件中:
//插入数据库操作
....
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "js", "<script>alert('插入成功');window.opener.location = window.opener.location;window.opener=null;window.close();</script>");