/// <summary> /// Set the data source and bind it to the repeater. /// No need to error check odc since the worst case scenario /// is that nothing is displayed. /// </summary> private void SetUpRepeater() { ArtistCollection ac = new ArtistCollection(false); ac.FetchTopSellingArtists(HowMany); repeaterArtists.DataSource = ac; repeaterArtists.DataBind(); }
/// <summary> /// Set up Top Ten Artists repeater (top based on sales) /// </summary> protected void SetTopTenArtistNav() { int topTen = 10; ArtistCollection artistsTopTen = new ArtistCollection(false); artistsTopTen.FetchTopSellingArtists(topTen); if (artistsTopTen.Count > 0) { PopArtistsTopTen.DataSource = artistsTopTen; PopArtistsTopTen.DataBind(); } }