Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2010-08-26
2
Medium Priority
?
467 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
roxviper earned 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

664 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