In my dataGrid I have a delete button which deletes the record that is clicked. I want a confirmation box to pop-up to confirm the record before it is deleted. The delete button in the datagrid does not have an onclick event, so I'm using the OnDeleteCommand to call my procedure. What I don't understand is, the delete button in the datagrid does not have an ID or name, so how do I call it if I use

btnName.Attributes.Add("onclick", "javaScript:window.


does anyone have an example of this?

thanks,
eye