How to add a confirmation on Button Click


Here is the code how you can add a client side confirmation box on button click :-
<asp:Button ID="btnDelete" runat="server" Text="Delete" 
OnClientClick="return confirm('Do You Want to Delete Record');"/>