private void populateGeneral() { //litFunctionSeqId.Text = m_Profile.Id.ToString(); divFunctionSeqId.InnerHtml = m_Profile.Id.ToString(); txtName.Value = m_Profile.Name; txtDescription.Value = m_Profile.Description; txtNotes.Text = m_Profile.Notes; txtKeyWords.Text = m_Profile.MetaKeywords; divAction.InnerHtml = m_Profile.Action; divAction.Visible = true; txtAction.Text = m_Profile.Action; //txtAction.Visible = false; txtSource.Text = m_Profile.Source; chkEnableViewState.Checked = m_Profile.EnableViewState; chkEnableNotifications.Checked = m_Profile.EnableNotifications; chkRedirectOnTimeout.Checked = m_Profile.RedirectOnTimeout; chkNoUI.Checked = m_Profile.NoUI; chkIsNav.Checked = m_Profile.IsNavigable; RolesControl.AllRoles = RoleUtility.GetRolesArrayListBySecurityEntity(SecurityEntityUtility.CurrentProfile().Id); RolesControl.SelectedAddRoles = m_Profile.AssignedAddRoles.ToArray(); RolesControl.SelectedDeleteRoles = m_Profile.AssignedDeleteRoles.ToArray(); RolesControl.SelectedEditRoles = m_Profile.AssignedEditRoles.ToArray(); RolesControl.SelectedViewRoles = m_Profile.AssignedViewRoles.ToArray(); GroupsControl.AllGroups = GroupUtility.GetGroupsArrayListBySecurityEntity(SecurityEntityUtility.CurrentProfile().Id); GroupsControl.SelectedAddGroups = m_Profile.AddGroups.ToArray(); GroupsControl.SelectedDeleteGroups = m_Profile.DeleteGroups.ToArray(); GroupsControl.SelectedEditGroups = m_Profile.EditGroups.ToArray(); GroupsControl.SelectedViewGroups = m_Profile.ViewGroups.ToArray(); }
private void populateRoles() { ctlRoles.DataSource = RoleUtility.GetRolesArrayListBySecurityEntity(SecurityEntityUtility.CurrentProfile().Id); ctlRoles.SelectedItems = m_Profile.AssignedRoles.ToArray(); ctlRoles.DataBind(); foreach (String role in m_Profile.DerivedRoles) { lstBoxRoles.Items.Add(role); } }