Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

confirmation from user from a delete button in the DataGrid

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.
[541 byte] By [sansircar] at [2007-11-11 7:50:15]
# 1 Re: confirmation from user from a delete button in the DataGrid
http://www.google.com/search?q=asp.net+datagrid+delete+confirm
Phil Weber at 2007-11-11 23:13:36 >