废话不多说 
外层页面里是个gridview,里面点击一个按钮是用jquery.dialog打开  打开的窗口用于填写资料  点击提交后 弹出编辑成功。现在想实现的功能是能够在关闭填写资料的窗口后能刷新有gridview的那个页面  希望高手们能指点我一下
如果得看JS代码 我等会贴出

解决方案 »

  1.   

    关闭填写资料的窗口的时候,window.location.reload();
      

  2.   

    我在填资料页面里的关闭按钮是
    <span onclick="JqueryDialog.Close();"> <img src="images/edit.gif" alt="编辑" style="border:0px" /></span>这是JS里的CLOSE
     Close: function () { $("#boxs").remove(); $("#wyulang").remove(); DispalySelect(1); },Ok: function () { var frm = $("#jd_iframe"); if (frm[0].contentWindow.Ok()) { JqueryDialog.Close(); } else { frm[0].focus(); } }, SubmitCompleted: function (alertMsg, isCloseDialog, isRefreshPage)
        { if ($.trim(alertMsg).length > 0) { alert(alertMsg); } if (isCloseDialog) { JqueryDialog.Close(); if (isRefreshPage) { window.location.href = window.location.href; } } }};
        var DragAndDrop = function (){var _clientWidth; var _clientHeight;var _controlObj; var _dragObj; var _flag = false;var _dragObjCurrentLocation;var _mouseLastLocation;var getElementDocument = function (element) { return element.ownerDocument || element.document; };
            var dragMouseDownHandler = function (evt){if (_dragObj) {evt = evt || window.event;_clientWidth = document.body.clientWidth;_clientHeight = document.documentElement.scrollHeight;$("#wyulang_m_b_1").css("display", "");_flag = true;_dragObjCurrentLocation = { x: $(_dragObj).offset().left, y: $(_dragObj).offset().top }; _mouseLastLocation = { x: evt.screenX, y: evt.screenY };$(document).bind("mousemove", dragMouseMoveHandler); $(document).bind("mouseup", dragMouseUpHandler);if (evt.preventDefault)evt.preventDefault();else { evt.returnValue = false; }}};
            var dragMouseMoveHandler = function (evt) {if (_flag) {evt = evt || window.event;var _mouseCurrentLocation = {x: evt.screenX,y: evt.screenY}; _dragObjCurrentLocation.x = _dragObjCurrentLocation.x + (_mouseCurrentLocation.x - _mouseLastLocation.x);_dragObjCurrentLocation.y = _dragObjCurrentLocation.y + (_mouseCurrentLocation.y - _mouseLastLocation.y);_mouseLastLocation = _mouseCurrentLocation;$(_dragObj).css("left", _dragObjCurrentLocation.x + "px");$(_dragObj).css("top", _dragObjCurrentLocation.y + "px");if (evt.preventDefault)evt.preventDefault();else{evt.returnValue = false;}}};var dragMouseUpHandler = function (evt){if (_flag){evt = evt || window.event; $("#wyulang_m_b_1").css("display", "none");cleanMouseHandlers(); _flag = false;} }; 
            var cleanMouseHandlers = function () { if (_controlObj) { $(_controlObj.document).unbind("mousemove"); $(_controlObj.document).unbind("mouseup"); } };return { Register: function (dragObj, controlObj){_dragObj = dragObj; _controlObj = controlObj; $(_controlObj).bind("mousedown", dragMouseDownHandler); } }
        }();点击了没用诶,谁能告诉我一下
      

  3.   

    <span onclick="JqueryDialog.Close();"> 改为
    <span onclick="closeW()">
    function closeW()
    {
    if(parent!=null&&JqueryDialog!=null){
    parent.JqueryDialog.Close();
    parent.location.href=parent.location.href;
    }
    }
      

  4.   

    代码贴错了if(parent!=null&&JqueryDialog!=null)
    改为if(parent!=null&&parent.JqueryDialog!=null)
      

  5.   

    还是没用  是不是我Jquery.close引用错了
      

  6.   

    close: function() { location.href=location.href;}点击关闭 没有看到你写 了 跳转代码额.....
      

  7.   


    改成这样的试试  Close这个东东 大小写不知道有没有区别额  哦没有大写过...close
      

  8.   

     Close: function () { $("#boxs").remove(); $("#wyulang").remove(); DispalySelect(1); }  你那里不是这么写的么
    改成 close: function () { $("#boxs").remove(); $("#wyulang").remove(); DispalySelect(1); location.href=location.href;}  这样子的试试 就是在关掉的时候加一个跳转的操作
      

  9.   


    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="ss.WebForm3" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <script type="text/javascript" language="javascript" src="/Common/JS/jq/jquery.1.3.2.min.js"></script>
        <script type="text/javascript" language="javascript" src="/Common/JS/jq/ui/ui.core.js"></script>
        <script type="text/javascript" language="javascript" src="/Common/JS/jq/ui/ui.dialog.js"></script>
        <link rel="stylesheet" href="/Common/JS/jq/ui/theme/yfw/ui.all.css" type="text/css" />
        <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title></title>
    </head>
    <script type="text/javascript" language="javascript">
      $(function(){
       $("#id").click(function(){
       
          $('#s').dialog('open');
      })  $("#s").dialog({
          draggable: true,
          bgiframe: true,
          resizable: false,
          autoOpen: false,
          width: 400,
          height: 170,
          modal: true,
          overlay: {
              backgroundColor: '#FFF',
              opacity: 0.5
          },
          buttons: {
              "OK": function() {
                  location.href = location.href;
              }
          },
          close: function() {location.href = location.href; }
      });
      
      })
    </script>
    <body>
        <form id="form1" runat="server">
        <div>
        <input type="button" id="id" value="确定" />
       <div style="display:none;" id="s">
      sssss
    </div>
        </div>
        </form>
    </body></html>提供个实例 自己看看   js 文件自行应用