Disable page reload in update panel
<p>I have an ASP.NET page with an update panel.
Normally, if I use an update panel, there should be postbacks only but no complete page reloads.</p>

<p>In my case, when I click a button, it always makes an page reload. Although this button is in an update panel.</p>

<p>What I found out: When I put</p>

<pre><code>Response.End();
</code></pre>

<p>in the Button_Click Method, there is no reload.</p>

<p>My code on the .aspx:</p>

<pre><code>    &lt;asp:UpdatePanel ID="upUserDefault" runat="server"&gt;
        &lt;Triggers&gt;
            &lt;asp:PostBackTrigger ControlID="btnPrintSelectedArticles" /&gt;
        &lt;/Triggers&gt;
        &lt;ContentTemplate&gt;

        &lt;cc1:MenuButton runat="server" ID="btnPrintSelectedArticles" OnClientClick="return ShowPrintStickersPopUp();" ButtonText="Print" /&gt;

    &lt;/ContentTemplate&gt;
&lt;/asp:UpdatePanel&gt;
</code></pre>

<p>Code behind:</p>

<p>Page Load:</p>

<pre><code>btnPrintSelectedArticles.MenuButton_Click += btnPrintSelectedArticles_MenuButton_Click;
</code></pre>

<p>Method:</p>

<pre><code>    void btnPrintSelectedArticles_MenuButton_Click(object sender, EventArgs e)
    {
        // Disables reload
        Response.End();
    }
</code></pre>

<p>MenuButton is a user control</p>

<p>Any ideas how to disable the reload of the complete page?</p>

<p>Edit:
This is the ShowPrintStickersPopUp JS from the ClienClick. It simply checks a gridview if there are any checkboxes checked</p>

<pre><code>function ShowPrintStickersPopUp() {
        var gridView = document.getElementById('&lt;% =gvArticles.ClientID %&gt;');

        //get all the control of the type INPUT in the base control.
        var inputs = gridView.getElementsByTagName("input");

        for (var n = 0; n &lt; inputs.length; ++n) {
            if (inputs[n].type == 'checkbox' &amp;&amp; inputs[n].checked) {
                // If at least 1 checkbox is checked, open popup
                window.open('PrintStickersPopUp.aspx', 'Print Stickers', 'width=700,height=550');
                return true;
            }
        }

        return false;
    }
</code></pre>
