Wait for java script confirm message response from server side?
<p>Is such thing possible ?</p>

<pre><code>     ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "Confirm", "x()", true);
    if (hid.Value != null)
    {
    }
    else
    {
    }

    function x() {
    var message = confirm("Are you sure you want to continue ?");
    if (message == true) {
        document.getElementById("hid").value = "1";
    }
    else {
        document.getElementById("hid").value = "0";
    }
}
</code></pre>
