protected void uoRoleList_ItemCommand(object sender, System.Web.UI.WebControls.ListViewCommandEventArgs e) { string strLogDescription; string strFunction; if (e.CommandName == "Delete") { UserAccountBLL.DeleteRole(e.CommandArgument.ToString()); //Insert log audit trail (Gabriel Oquialda - 17/11/2011) strLogDescription = "Role deleted. (flagged as inactive)"; strFunction = "uoRoleList_ItemCommand"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); BLL.AuditTrailBLL.InsertLogAuditTrail(0, "", strLogDescription, strFunction, Path.GetFileName(Request.Path), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); GetRoles(); } }