Disabling a button doesn't fire click event on server side
<p>I have an imagebutton in my aspx page like:</p>

<pre><code>&lt;asp:ImageButton ID="btnProcessPayment" ImageUrl="~/Images/process-payment.png" OnClientClick="return disableButton(this);"
                                    runat="server" OnClick="btnProcessPayment_Click" /&gt;
</code></pre>

<p>This is my javascript function:</p>

<pre><code>function disableButton(button) {
            button.disabled = true;
            return true;
        }
</code></pre>

<p>As you can see in my javascript event handler I have disabled the button to prevent the user from click the button twice. However, even my server side event handler doesn't get fired due to this. What am I doing wrong?</p>

<p><strong>Note:</strong> If I comment out this line     <code>button.disabled = true;</code> all works out pretty well.</p>
