When you click the Delete button in the DataGrid column, the pop-up dialog allows the user to confirm the deletion, cancel the r

xiaoxiao2021-03-05  34

private void DataGrid1_ItemDataBound (object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) {LinkButton Button1 = (LinkButton) e.Item.FindControl ( "LinkButton1"); if (! Button1 = null) {Button1.Attributes.Add ( "Onclick", "Return Confirm" will not be recovered after delete, continue? '); ");}}

转载请注明原文地址:https://www.9cbs.com/read-33422.html

New Post(0)