UseSubmitBehavior="false" and binding OnClientClick?
<pre><code>&lt;asp:Button ID="RecoverButton" runat="server" Text="Recover"
    OnClick="RecoverButton_OnClick" UseSubmitBehavior="false" /&gt;
</code></pre>

<p>I kind of figured out <code>UseSubmitBehavior="false"</code> overwrites the <code>OnClientClick</code> function I was providing.</p>

<p>I went with this then:</p>

<pre><code>$(document).ready(function() {
    $("[id$=RecoverButton]").live("click", RecoverButton_OnClick);
});

function RecoverButton_OnClick(s, e) {
    var input = $("[id$=MasterUsername]").val();
    var valid = $dn.s.MailValidation(input);

    if (!valid) {
        // prevent postback here
    }
}
</code></pre>

<p>But I don't know how I can prevent the postback event from firing up.
I tried doing something like <code>e.preventDefault()</code> but it didn't work, ideas?</p>

<p><strong>Update</strong> thing is both the <code>__doPostback</code> and <code>jQuery</code>'s click handler seem to fire up at the same time (or maybe ASP.NET's fires first), but I placed an alert on my RecoverButton function and firebug already shows the postback happening while the alert is there, blocking execution.</p>
