asp.net 关闭子窗体 刷新主窗体
主窗体
******************************************
******************************************
//原窗口保留,以对话框形式打开新窗口:
Response.Write("<script>window.open('Tree1_edit.aspx','child','width=300,height=280,left=200,top=200')</script>");
******************************************
******************************************
子窗体
******************************************
******************************************
<script language="JavaScript" type="text/javascript">
<!--
function refreshParent() {
window.opener.location.href = window.opener.location.href;
if (window.opener.progressWindow)
{
window.opener.progressWindow.close();
}
window.close();
} //-->
</script>
******************************************
Response.Write("<script language=javascript>opener.location.href=opener.location.href;window.close();</script>");
******************************************
******************************************