Solved

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

Posted on 2010-08-26
2
456 Views
Last Modified: 2012-05-10
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#.
0
Comment
Question by:pawar_deepak
2 Comments
 
LVL 5

Accepted Solution

by:
roxviper earned 500 total points
ID: 33532737
<asp:Button ID="btnDelete"  ToolTip="Delete" runat="server" OnClientClick="return confirm('Are you sure you want to delete this account?');"  OnClick="btnDelete_Click"  />
0
 
LVL 18

Expert Comment

by:Richard Lee
ID: 33532770
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now