protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.Cells[0].HasControls())
{
LinkButton btnDelete = (LinkButton)e.Row.Cells[0].Controls[5];
if (btnDelete.Text.Equals("删除"))
{
btnDelete.Attributes.Add("onclick","javascript:return confirm('你确认要删除吗?');");
}
}
}