父页面有一Datagrid 
弹出页面设置完成后 ,让父页面的Datagrid帮定!

解决方案 »

  1.   

    window.opener.location=window.opener.location
      

  2.   

    /// <summary>
            /// 关闭当前窗口并刷新父窗口
            /// </summary>
            public static void CloseWindow()
            {
                string js=@"<Script language='JavaScript'>
                        window.close();
        window.opener.location.href=window.opener.location.href;  
                      </Script>";
                HttpContext.Current.Response.Write(js);     
                HttpContext.Current.Response.End();  
            }
    把以上函数在你的Button事件里调用就可以啦
    当单击Button的时候就会调用这段脚本!!!
      

  3.   

    http://www.cnblogs.com/huobazi/archive/2004/04/06/RefreshOrReloadParentWindowWithoutConfirm.html
      

  4.   

    在A页面中写入这段,注意将txtName换成你页面文本框的值,
    <script language = javascript>
    function recieve(value)
    {
        var reciever = document.getElementById('txtName');
        reciever.value = value;    
    }
    </script>
    在B页面中,被选中后出发该事件
    <script language=javascript>
    function ShowWin()
      {
           if(this.opener != null)
           { 
                if(this.opener.recieve)
                {
     
                    this.opener.recieve('被选的值');
                    this.opener = null;
                    window.close();
                }
                else
                    alert('父窗口必须定义recieve(value)方法以接收返回值');
           }
            else
                alert('父窗口错误');   
      }
    </script>
      

  5.   

    http://bbs.doloop.cn/demo/Javascript/NewWindow/Default.aspx
      

  6.   

    Response.Write("<script language='javascript'>window.opener.location.href = window.opener.location.href;</script>");
      

  7.   

    http://topic.csdn.net/t/20041224/10/3672550.html
      

  8.   

    弹出的模态窗口,opener应该不行.
      

  9.   

    function ClosePage()
    {
    if (window.dialogArguments != null)
        var w = window.dialogArguments;
    //w.location.reload();
    w.location.href = "*.aspx";
    window.close(); 
    }