title: Javascript: Force aspx parent page to server refresh
body: <p>In a child popup window I have the following button.</p>
  
  <pre><code>&lt;asp:Button Style="width: 100%;" ID="Button2" runat="server" OnClientClick="RefreshParent()"
   OnClick="Button1_Click" Text="Select Study" /&gt;
  </code></pre>
  
  <p>The OnClick function allows the user to select a study which changes the entire site's content, this part works fine, thus isn't listed.  </p>
  
  <p>The OnClientClick function should refresh the parent page, but doesn't cause the client data to update unless I manually refresh the page (F5).  Here is the RefreshParent code.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function RefreshParent() {
          window.opener.document.reload()
          window.close();
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>In the function I have also tried:</p>
  
  <pre><code>window.opener.document.reload(true)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>window.opener.document.href("home.aspx")
  </code></pre>
  
  <p>Nothing worked.  Is there a method that will cause a server postback from a child window with either the code behind or javascript?  Thanks.</p>