private void FillArtistList()
    {
        List <FanLoginService.Artist> artistList = fan.GetArtist().ToList();

        FollowArtistList.DataSource     = artistList;
        FollowArtistList.DataTextField  = "ArtistName";
        FollowArtistList.DataValueField = "ArtistKey";
        FollowArtistList.DataBind();
        ListItem item = new ListItem("");

        FollowArtistList.Items.Insert(0, item);
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            List <FanLoginService.Artist> artistList = fan.GetArtist().ToList();
            ArtistList.DataSource    = artistList;
            ArtistList.DataTextField = "ArtistName";
            ArtistList.DataBind();

            List <FanLoginService.Genre> genreList = fan.GetGenre().ToList();
            GenreList.DataSource    = genreList;
            GenreList.DataTextField = "GenreName";
            GenreList.DataBind();

            List <string> venueList = fan.GetVenue().ToList();
            VenueList.DataSource = venueList;
            VenueList.DataBind();
        }
    }