Validation on confirming Alert
<p>Script</p>

<pre><code>&lt;script language="javascript" type="text/javascript"&gt;
     function FinalFunction() {
         //Your First Script
         return  confirm('Are you sure about to submit the test?');
     }
&lt;/script&gt;

&lt;asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="javascript:FinalFunction();" OnClick="Button1_Click" /&gt;
</code></pre>

<p>This script is showing the confirmation alert message but either on clicking OK or Cancel Button, the page is redirecting to another page.</p>

<p>What I want is when I click on the Cancel Button, the page should be on same page, it should not redirect to another page.</p>

<p>How do I do it?</p>
