Confirm Message Box With OK or Cancel Option in C#

Confirm Message Box With OK or Cancel Option 


If Save Button Click Want To Confirmation Message Using OnClientClik Write Message Get MessageBox

         
                           DEMO




         
                     HTML CODING


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
    
    <asp:Button ID="Button1" runat="server" OnClientClick="return confirm('Do You Want To Save?');" Text="Save" />
    
</div>
</form>
</body>

</html>


First - Add - New Web Form  - Add Button - Go To - Property - OnClientClick Write Message





Next - Run [F5] - Click Button - Show Confirmation Message










0 comments:

Post a Comment