title: How to refresh parent page on closing of Pop Up Window
body: <p>I have two ASPX pages. In first page I am showing the Grid with values from database and on the second page I am showing as pop-up window where user can see another gridview and they can add member from this page. After they add member from Pop-Up window and close then my requirement is to refresh the first page so that its grid reloads the new added members on its gridview. Can anyone help me on this? I am trying this following code but this is not helping:</p>
  
  <pre><code>    function refreshParent() {
          window.opener.location.href = window.opener.location.href;
  
          if (window.opener.progressWindow) {
              window.opener.progressWindow.close()
          }
          window.close();
      }
  
    &lt;body onunload="refreshparent();"&gt;
  </code></pre>
  
  <p>And another problem is as I am using one more server side button on pop-up window so whenever the button is pressed the window closes and refresh the parent page. But i want the pop-up to be closed by the user input.</p>
  
  <p>Your help would be so appreciable.</p>
  
  <p>Thanks</p>