private void DataList1_ItemDataBound(object sender, System.Web.UI.WebControls.DataListItemEventArgs e) { ((LinkButton)e.Item.FindControl("btnDelete")).Attributes.Add("onclick","return confirm('确认删除吗?');"); }
参考资料:
-------------------------------------------------------------------------------------------------------------------------------------------------
数据库优化
数据库教程
数据库实战经验分享博客