c# - Validation on confirming Alert -


script

<script language="javascript" type="text/javascript">      function finalfunction() {          //your first script          return  confirm('are sure submit test?');      } </script>  <asp:button id="button1" runat="server" text="button" onclientclick="javascript:finalfunction();" onclick="button1_click" /> 

this script showing confirmation alert message either on clicking ok or cancel button, page redirecting page.

what want when click on cancel button, page should on same page, should not redirect page.

how do it?

onclientclick = "return finalfunction();"?


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -