
如何给datalist里的删除按纽弹出一个确认对话框
private void DataList1_ItemDataBound(object sender, System.Web.UI.WebControls.DataListItemEventArgs e) { ((LinkButton)e.Item.FindControl("btnDelete")).Attributes.Add("onclick","return confirm('确认删除吗?');"); }
============ 欢迎各位老板打赏~ ===========

