S
Steven Spits
i have a datagrid with a delete button for each row in the grid.
when the delete button is clicked i need to ask the user in a "confirm"
message box if he's sure he wants to delete.
Get a reference to the delete button in the ItemCreated event of your
datagrid, then use:
btnDelete.Attributes.Add("onclick", "return confirm('Delete record?');");
Steven
- - -