private void GenerateProjectDropdowns() { //fills out company dropdown CompanySelect.DataSource = Data.CompanyUtil.GetClientCompanies(); CompanySelect.DataTextField = "companyName"; CompanySelect.DataValueField = "companyId"; CompanySelect.DataBind(); CompanySelect.SelectedIndex = 0; //fills out workflow dropdown WorkflowSelect.DataSource = Data.WorkflowUtil.GetWorkflows(); WorkflowSelect.DataTextField = "workflowName"; WorkflowSelect.DataValueField = "workflowId"; WorkflowSelect.DataBind(); WorkflowSelect.SelectedIndex = 0; //fills out company dropdown CoachSelect.DataSource = Data.UserUtil.GetCoaches(); CoachSelect.DataTextField = "fullName"; CoachSelect.DataValueField = "userId"; CoachSelect.DataBind(); CoachSelect.SelectedIndex = 0; Panel aster = new Panel(); aster.CssClass = "ui teal left corner label"; Literal icon = new Literal(); icon.Text = "<i class=\"white asterisk icon\"></i>"; aster.Controls.Add(icon); ProjectNamePanel.Controls.Add(aster); }
private void SetupAdminPage() { RoleSelect.DataSource = RoleUtil.GetRoles(); RoleSelect.DataTextField = "roleName"; RoleSelect.DataValueField = "roleId"; RoleSelect.DataBind(); RoleSelect.SelectedIndex = 0; UserRole.DataSource = RoleUtil.GetRoles(); UserRole.DataTextField = "roleName"; UserRole.DataValueField = "roleId"; UserRole.DataBind(); CompanySelect.DataSource = CompanyUtil.GetCompanies(); CompanySelect.DataTextField = "companyName"; CompanySelect.DataValueField = "companyId"; CompanySelect.DataBind(); CompanySelect.SelectedIndex = 0; LockedAccountSelect.DataSource = UserUtil.GetLockedUsers(); LockedAccountSelect.DataTextField = "Identity"; LockedAccountSelect.DataValueField = "UserId"; LockedAccountSelect.DataBind(); LockedAccountSelect.SelectedIndex = 0; MakeUserTable(); MakeCompanyTable(); }