?
Solved

Gridview Delete row warning!!

Posted on 2007-04-04
1
Medium Priority
?
576 Views
Last Modified: 2013-11-07
Hi,
I have a gridview with a delete column. Its dangerous to have this in the manner that I have it set up because it does an instant delete without any second chance or option to change the users mind.

I was wondering if there is any easy way of displaying an ok Cancel dialog that displayed the description of the data they are about to delete, giving them the opportunity to cancel.

Cheers
0
Comment
Question by:jazz__man
[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
1 Comment
 
LVL 10

Accepted Solution

by:
Si_Hibbard earned 2000 total points
ID: 18849662
There is an example of how to do this is MSDN -> http://msdn2.microsoft.com/en-us/library/ms972940.aspx

Near the bottom of the page - look for "Utilizing Client-Side Script to Confirm Deletions"
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

770 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