Beispiel #1
0
    /// <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();
    }
Beispiel #2
0
    /// <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();
        }
    }