if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.EditItem)
{
TableCell myTableCell;
myTableCell = e.Item.Cells[8];
LinkButton btnDel =(LinkButton)myTableCell.Controls[0];
btnDel.Attributes.Add("onclick","return confirm('您确定删除此条信息吗?');");
}
{
TableCell myTableCell;
myTableCell = e.Item.Cells[8];
LinkButton btnDel =(LinkButton)myTableCell.Controls[0];
btnDel.Attributes.Add("onclick","return confirm('您确定删除此条信息吗?');");
}