Javascript disabling my postback
<p>I have an ASP.NET checkbox, and I want to run some javascript before it posts back.</p>

<p>Something like:</p>

<pre><code>&lt;asp:CheckBox ID="chkSelected" runat="server" AutoPostBack="True" OnCheckedChanged="chkSelected_CheckedChanged" /&gt;
</code></pre>

<p>but I want to run a JS confirm dialog when the user click it, and if they were UNCHECKING it, I'd like to ask them if they're sure, and if so, postback and run my serverside code. If they say No, don't postback at all.</p>

<p>Anyone know of an 'easy' way to do this?</p>
