How to refresh the parent page and closing the child window using javascript
<p>How to refresh the parent page and closing the child window using javascript  when I click the button in parent page asp.net 
I am able to refresh the parent page but my child window is not closing.
My C# Code is </p>

<pre><code> string script = @"&lt;script&gt;
        function RefreshParent()
        {
          window.close();
           window.opener.location.reload();
          }RefreshParent();
&lt;/script&gt;";
        Page.ClientScript.RegisterStartupScript(this.GetType(), "ssr", script);
</code></pre>
