Pop up Delete confirmation box...
Has anyone created a confirmation pop box(OK, Cancel) when clicking on delete buttons within the DataGrids. For example, would like to include this feature in the NewsGrid of the Admin News.aspx file.
I have created this pop up box in the EditRoles.aspx page, but it is just tied to a regular button(not within a DataGrid). I just put the following code within the Page_Load:
RemoveRoleButton.Attributes.Add("onClick", "return confirm('Are you sure you want to delete Current Role?');");
Any suggestions for adding this pop up confirmation to a button in a DataGrid?
Thanks,
d.
|