单击web0界面的按钮bt1触发一下代码:
protected void btnSave_Click(object sender, EventArgs e)
{
string parentJs = @"<script>opener.location.reload();</script>";
ClientScript.RegisterStartupScript(this.GetType(), "clientScript", parentJs);
}
即可刷新web0。前提是web0打开web1的方式如下:
public void btOpenWeb1(object sender,eventargs e)
{
Response.Write("<script type='text/javascript'>window.open('web1.aspx','newwindow', 'height=500, width=750, top=50,left=300, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')</script>");
}