{
if (GetPower.GetDel(AdminPower[GetClassIndex(TempClassName)], TempClassID))//删除权限判断
{
for (int i = 0; i < GridViewAdmin.Rows.Count; i++)
{
LinkButton LinkButtonDelete = (LinkButton)GridViewAdmin.Rows[i].Cells[7].FindControl("LinkButtonDelete");
LinkButtonDelete.Attributes.Add("onclick", "return confirm('您真的要删除吗?');");
}
}
}
这段是在GridView的绑定事件里
protected void LinkButtonDelete_Click(object sender, EventArgs e)
{
LinkButton LinkButtonDelete = (LinkButton)sender;
//此处是想要点击“确定”后执行的东西
}//文章列表“删除”