protected void gvAve_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
LinkButton btnDelete = (LinkButton)e.Row.Cells[e.Row.Cells.Count-1].Controls[0];
btnDelete.Attributes.Add("onclick", "javascript:return " + "confirm('确定要删除途径 [" + DataBinder.Eval(e.Row.DataItem, "AveName") + "]')");
}
}
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
LinkButton btnDelete = (LinkButton)e.Row.Cells[e.Row.Cells.Count-1].Controls[0];
btnDelete.Attributes.Add("onclick", "javascript:return " + "confirm('确定要删除途径 [" + DataBinder.Eval(e.Row.DataItem, "AveName") + "]')");
}
}