JavaScript function is not working
<p>I have this line in a button click method on my aspx.cs file</p>

<pre><code>ClientScript.RegisterStartupScript(this.GetType(), 
                                   "RefreshOpener", 
                                   "RefreshParent()", 
                                    true);
</code></pre>

<p>I have this code on aspx file</p>

<pre><code>function RefreshParent() {              
                   window.opener.location.href = window.opener.location.href;

        } 
</code></pre>

<p>When I debug th code, it comes to this line <code>ClientScript.RegisterStartupScript(this.GetType(), 
                                       "RefreshOpener", 
                                       "RefreshParent()", 
                                        true);
</code> but does not go to aspx file to run the JS code.</p>

<p>The most frustrating part is I have used the same things on some other pages with the same methods and they worked but this time it is not.</p>

<p>This is the button mentioned</p>

<pre><code>&lt;asp:ImageButton ID="Button_KAYDET" 
                 runat="server" 
                 CausesValidation="False"
                 ImageUrl="~/images/butonlar/kucuk/kaydet.jpg"
                 OnClick="Button_KAYDET_Click"
                 meta:resourcekey="Button_KAYDETResource1" /&gt;
</code></pre>

<p>Any ideas?</p>
