Wednesday, September 21, 2011

Comfirm for delete button

Simply making a confirm message for a delete button.

All you have to do is add this  onclientclick="return confirm('Are you sure you want to Delete this Apointment ?');"
For example :


       <asp:Button ID="Button2"
                    runat="server"
                    Text="Delete"    onclick="Button2_Click"
                    onclientclick="return confirm('Are you sure you want to Delete this Apointment ?');" />
Simple?

No comments: