Execute javascript/jquery code OnClick and conditional post back to ASP function
<p>jQuery newbie question here... I have a jQuery dialog that displays a warning with a "OK" or "Cancel" and based on what they click the result needs to then execute the server side ASP onClick event. </p>

<p>I've attempted to write it along these lines:</p>

<pre><code>            "OK": function () {
                $(this).dialog("close");
                return true;
            },
            Cancel: function () {
                $(this).dialog("close");
                return false;
</code></pre>

<p>But it never posts back to the asp server side method.</p>

<p>Am I off base in what I am trying to accomplish here, and is there standard 'best practice' type of way of implementing this type of functionality?</p>
