private void GetUserDefaultRights() { DataSet GetUserDefaultRight = new DataSet(); GetUserDefaultRight = objHotLeadBL.GetMasterRoles(); Session["MasterRoles"] = GetUserDefaultRight; GridDefaultUserRights.DataSource = GetUserDefaultRight.Tables[0]; GridDefaultUserRights.DataBind(); }
private void GetLeadsUserRights(int LocationId) { DataSet GetLeadsRights = new DataSet(); GetLeadsRights = objHotLeadBL.GetLeadsUserRights((Convert.ToInt32(ddlcenters.SelectedValue))); Session["LeadsuserRights"] = GetLeadsRights; GridDefaultUserRights.DataSource = GetLeadsRights.Tables[0]; GridDefaultUserRights.DataBind(); }
private void GetUserDefaultRights() { GridDefaultUserRights.DataSource = null; GridDefaultUserRights.DataBind(); string CenterValue = ddlcenters.SelectedValue; DataSet GetAllEmployees = new DataSet(); GetAllEmployees = objHotLeadBL.PerocessRightsStatus(Convert.ToInt32(CenterValue.ToString())); Session["Employees"] = GetAllEmployees; GridDefaultUserRights.DataSource = GetAllEmployees.Tables[0]; GridDefaultUserRights.DataBind(); }