JavaScript Query
<p>I have a field named "GROSS AMOUNT" </p>

<p>If the gross amount is zero, then the javascript message confirmation asks the user whether the user should continue saving with zero amount and if the user presses cancel, even the server side save button should not be active, it should return back to the panel of the gross amount.</p>

<p>I have used the following code for the client side.</p>

<pre><code>function show_confirm() {

    // var txttemp = document.getElementById("&lt;%=txtSAmt.ClientID %&gt;").value;
    var menu = $find("&lt;%= this.txtSAmt.ClientID %&gt;");
    var check;
    if (menu != null) {
        check = menu.get_value();
    }
    if (check == '0') {
        var r = window.confirm("Gross Settlement Amount is 0.Press Cancel to Change, Press OK to save anyway");
        if (r == 'false') {

        }

    }

}
</code></pre>

<p>Please let me know that if the client clicks cancel, it should not fire the btnSave on the server side.</p>
