Solved

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

Posted on 2010-08-26
2
458 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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

821 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