protected virtual void Page_Load(object sender, EventArgs e) { var monthsByYearKeys = ArchiveCore.MonthsByYear.Keys; if (monthsByYearKeys.Any()) { Years.DataSource = monthsByYearKeys; Years.DataBind(); PanelArchive.Visible = true; } else { PanelArchive.Visible = false; } }
protected virtual void Page_Load(object sender, EventArgs e) { ExpandMonthsOnLoad = true; m_entriesByMonthAndYear = new Dictionary <int, List <EntryItem> >(); if (CurrentBlog != null) { m_startedDate = CurrentBlog.InnerItem.Statistics.Created; } LoadEntries(); if (Years != null) { Years.DataSource = GetYears(); Years.DataBind(); } }