Delete confirmation prompt in the general page:
Add: button1.attributes.add ("Onclick", ");"); ");"); ");
Delete confirmation prompt in DataGrid:
Suppose in the template column: asp: linkbutton> Add: Private Void DataGrid1_ItemDataBound (object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) {if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) {LinkButton btn = (LinkButton) e .Item.FindControl ("btndel"); Btn.attributes.Add ("Onclick", "Return Confirm ('Are you sue to delete?');");}}