Messagebox asp.net c#
<pre><code>int approvalcount; 
if (approvalcount &gt; 0)
{
    string script = @"confirm('Click OK or Cancel to Continue') ;";
    ScriptManager.RegisterStartupScript(this, this.GetType(), "confirm_entry", script, true);
}
else
{
    return true;
}
</code></pre>

<p>I need help for the above code. If click ok need to return true or click cancel need to return false. How can I get the return value ? Are there any other ways to shows the message box in asp.net and c# ? </p>

<p>approvalcount is int typed variable. </p>
