protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Del") { int id = Convert.ToInt32(e.CommandArgument); string managerID = Request.QueryString["manageID"].ToString(); BLL.CommonClass.ChangeLogs cl = new BLL.CommonClass.ChangeLogs("viewmanage", "id"); cl.AddRecord(id); if (ManagerBLL.DelViewManage(id) > 0) { cl.DeletedIntoLogs(BLL.CommonClass.ChangeCategory.company25, "管理员:" + managerID, BLL.CommonClass.ENUM_USERTYPE.objecttype7); msg = "<script>alert('删除成功!');</script>"; } PageSet(); } }