Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 25th, 2006, 11:26 AM
Authorized User
 
Join Date: Jun 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default confirmation from user from a delete button in the

One of the columns of the datagrid is a TemplateColumn containing a Delete button.
i'm deleting a row on the click of the Delete Button.
How do i put in a confirmation - "Are you sure ..."
for the user before, the row gets deleted. Since the delete code is a part of the following event -

private void grdPayments_DeleteCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
}
thus cannot even attach an "onClick" attribute to it, had it been a normal button.
please advise.

 
Old January 25th, 2006, 01:44 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Take a look at the following article, it explains in detail how to do this:

http://imar.spaanjaars.com/QuickDocId.aspx?QUICKDOC=355

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable GridView delete button for a user rao965 ASP.NET 2.0 Professional 0 May 9th, 2008 12:30 PM
Delete Confirmation From within a Gridview rit01 ASP.NET 2.0 Professional 5 March 8th, 2007 06:47 PM
Confirmation message on delete of Data grid item [email protected] VS.NET 2002/2003 1 December 22nd, 2004 02:27 AM
delete confirmation yami56 Access 2 April 7th, 2004 12:09 PM
Pop up Delete confirmation box... developerz BOOK: ASP.NET Website Programming Problem-Design-Solution 1 October 8th, 2003 01:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.