protected void DViewComputer_DataBound(object sender, EventArgs e) { Button button = (Button)(DViewComputer.Rows[30].Cells[0].Controls[2]); // Add delete confirmation ((System.Web.UI.WebControls.Button)(button)).OnClientClick = "if (!confirm('Are you sure " +"you want to delete this record?')) return;"; }
Button
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)