How do I create a Confirmation Dialog for DELETE button in ASP.NET (C#) web application?

Can you please tell me how can I create a confirmation dialog for DELETE button? When user clicks DELETE, it should prompt for confirmation and if user clicks YES, record will be deleted and if clicks NO, operation will be cancelled.

Environment: Visual Studio 2008, C#.
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

roxviperConnect With a Mentor Commented:
<asp:Button ID="btnDelete"  ToolTip="Delete" runat="server" OnClientClick="return confirm('Are you sure you want to delete this account?');"  OnClick="btnDelete_Click"  />
Richard LeeSoftware EnthusiastCommented:
All Courses

From novice to tech pro — start learning today.