Hi,
I want to add a confirmation to a delete button in a GridView.
In the Grid_ItemDataBound event, I normally use something like
ImageButton delBtn = (ImageButton)e.Item.FindControl("DeleteBtn");
delBtn.OnClientClick = String.Format("return confirm('Are you sure you want to delete {0}');", ((DateRowView)e.Item.DataItem)["Name"]);
When I want to do this using the dnnConfirm function I run into errors. Can anyone advise me how to do it?
Note: The confirm message should be different for every row by containing the "Name" field value.
Thanks for any help...
Best wishes
Michael