if (e.Row.RowType == DataControlRowType.Pager)
{
Button btn = (Button)(e.Row.FindControl("btnDel"));
if (btn != null)
{
btn.Attributes.Add("onclick", "return confirm('确定删除吗?')");
}
}
{
Button btn = (Button)(e.Row.FindControl("btnDel"));
if (btn != null)
{
btn.Attributes.Add("onclick", "return confirm('确定删除吗?')");
}
}