how to get the return value from a JS dialog box in asp.net without tying it to a button
<p>How can one display a confirmation box &amp; get the return value in C# code in ASP.NET without tying it to a button? I need to display the confirmation box from inside the event handler of a button if a certain condition is filled.</p>

<p>Situation:</p>

<pre><code>protected void okBtn_Click(object sender, EventArgs e)
{
    if (blah)
    {
        bool answer = DisplayConfirmationBox();
    }
}
</code></pre>

<p>Displaying it using JS is not really an issue, but getting the return value from it is. </p>
