在对话框里:<script language="JavaScript">
function myReload()
{
  opener.location.Reload();
}
</script>
<body unload="myReload()">

解决方案 »

  1.   

    回传参数?在A页面中用JAVASCRIPT弹出B页面
    Response.Write("<script Language=JavaScript>");
    string url="B.aspx
    Response.Write("ChildWindow = window.open('"+url+"', '111', 'width=220,height=200,top=180,left=280,toolbar=no,status=yes,location=no,menubar=no,directories=no,scrollbars=no,resizable=no')");
    Response.Write("</script>");
    在B页面中用JAVASCRIPT回传参数
    Response.Write("<script Language=JavaScript>");
    Response.Write("window.opener.document.forms['newmessage'].elements['Return'].value ='"你要回传的STRING"';");
    Response.Write("window.close();");
    Response.Write("</script>");Return是A页面中的TEXTBOX 的ID,newmessage是A页面,这样的话A页面会自动刷新
      

  2.   

    <body onunload="window.location.reload();"