Beispiel #1
0
        private void BindSections()
        {
            IList sortedSections = CoreRepository.GetSortedSectionsByNode(ActiveNode);

            // Synchronize sections, otherwise we'll have two collections with the same Sections
            ActiveNode.Sections    = sortedSections;
            rptSections.DataSource = sortedSections;
            rptSections.DataBind();
            if (ActiveNode.Id > 0 && ActiveNode.Template != null)
            {
                // Also enable add section link
                hplNewSection.NavigateUrl = String.Format("~/Admin/SectionEdit.aspx?SectionId=-1&NodeId={0}",
                                                          ActiveNode.Id);
                hplNewSection.Visible = true;
            }
        }