Get the return confirm popbox value in asp .net C#
<p>How can i get the value that was pressed in the confirm box?</p>

<pre><code> &lt;script type = "text/javascript" language = "javascript"&gt;
        function confirm_proceed()
        {
            if (confirm("Are you sure you want to proceed?")==true)
                return true;
            else
                return false;
        }
    &lt;/script&gt; 
</code></pre>

<p>C#</p>

<pre><code>  Button2.Attributes.Add("onclick", "return confirm_proceed();");
</code></pre>
