Javascript for running code-behind code when a button is clicked
<p>i have a popup that is getting displayed when Save button is clicked. The popup has 2 buttons. Yes and No. No should cancel the popup
and yes should take you to function in the code-behind say, btnSave_Click(object sender, Eventargs e). How is it possible. Could someone help me, i am new to Javascript.</p>

<p>Below is the code where i am showin the popup.</p>

<pre><code>var mdlPopup = $find('&lt;%= ModalPopupExtendersavechanges.ClientID %&gt;');
     if(mdlPopup)
     {
       mdlPopup.show();           
     }
</code></pre>
