<script type="text/Javascript" language ="javascript" > function confirm_meth() { if( confirm("Do you want to continue!Click 'YES'")==true) { document.writeln ("<b>You had click on 'YES' Button</b>"); } else { document.writeln ("<b>You had clic on 'NO' Button</b>"); } } <pre lang="xml"><asp:Button ID="Btn_Submit" runat="server" Text="Submit" onclick="Btn_Submit_Click" OnClientClick="return confirm_meth()"/> </pre>
function confirm_meth() { if( confirm("Do you want to continue!Click 'YES'")) { document.writeln ("You had click on 'YES' Button"); } else { document.writeln ("You had clic on 'NO' Button"); } }
Page.ClientScript.RegisterStartupScript(this.GetType(), "confirm", "confirm_meth();", true);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)