protected void Page_Load(object sender, EventArgs e) { RedirectUtil.RedirectUnauthenticatedUserToLoginPage(); RedirectUtil.RedirectNonAdminUserToHomePage(); BreadCrumbUtil.DataBind(Page, new List <BreadCrumb>() { new BreadCrumb(NavUtil.GetHomePageUrl(), "Home"), new BreadCrumb(NavUtil.GetOrganizationsPageUrl(), "Organizations"), new BreadCrumb(NavUtil.GetUpdateOrganizationPageUrl(GetOrganizationId()), "Update Organization", IsActive: true), }); labelPageTitle.Text = "Update the Organization"; labelPageDescription.Text = "Use the form below to update the organization."; organizationForm.GetSubmitButton().Click += new EventHandler(btnUpdateOrganization_Click); organizationForm.GetCancelButton().Click += new EventHandler(btnCancel_Click); }
protected void Page_Load(object sender, EventArgs e) { RedirectUtil.RedirectUnauthenticatedUserToLoginPage(); RedirectUtil.RedirectNonAdminUserToHomePage(); BreadCrumbUtil.DataBind(Page, new List <BreadCrumb>() { new BreadCrumb(NavUtil.GetHomePageUrl(), "Home"), new BreadCrumb(NavUtil.GetOrganizationsPageUrl(), "Organizations", IsActive: true), }); var items = new List <HyperlinkListPanelItem>(); var organizationService = ServiceFactory.OrganizationService; foreach (var organization in organizationService.GetAll()) { items.Add(new HyperlinkListPanelItem(URL: NavUtil.GetUpdateOrganizationPageUrl(organization.Id), Heading: organization.Name, Text: "")); } HyperlinkListPanelRenderer.Render(organizationsList, new HyperlinkListPanelConfig("Talent Organizations", items, ButtonAddOrganizationClick)); }