private void PageDataGrid_ItemBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
e.Item.Cells[索引].Attributes.Add("onClick","return confirm('你确定要删除这一项吗?');");
}
{
e.Item.Cells[索引].Attributes.Add("onClick","return confirm('你确定要删除这一项吗?');");
}
<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Text="<div onclick="JavaScript:return confirm('确定更新吗?')">更新</div>"" HeaderText="编辑" CancelText="取消" EditText="编辑">
xiahouwen(活靶子.NET) :实现不了啊