JQuery dialog not returning to codebehind
<p>I have a div contains confirm dialog(yes and no buttons),which i am opening using below jquery. but i need to go to code behind if yes is clicked and if no no actions should done. I'm trying to return true and false <strong>but its not working</strong>..please help me..</p>

<pre><code>   jQuery(function ($) {
        $('#&lt;%=Gridview1.ClientID%&gt; #confirm-dialog a[id*=lnkupdate]').click(function (e) {
            e.preventDefault();
            if (confirm("Are you sure you want to Update?")) {
               //if yes button is clicked should go to codebehind
                return true;
            } else {
               //if no button is clicked terminate the operation
                return false;
            }
        });
    });
</code></pre>
