一:父页面js取得弹出窗口值
本页面用一个textbox接受传值
<input %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <base target="_self"></base>
</head>
<body >
    <form /></div>
    </form>
</body>
</html>



代码:


 protected void Button2_Click( object sender, EventArgs e )
    {
        Response.Write( "<script>window.opener.location.reload();window.close();</script>" );       
    }

 

 

 

 

刷新框架父页面

Response.Write("<script>window.open('err.aspx','');window.parent.location.reload();</script>");

相关文章: