Beispiel #1
0
    private void FillGenres()
    {
        ArtistTrackingServiceClient atsc = new ArtistTrackingServiceClient();
        int          key    = (int)Session["FanKey"];
        List <Genre> genres = atsc.GetGenres().ToList();

        DataList2.DataSource = genres;
        DataList2.DataBind();
    }
Beispiel #2
0
    private void FillDropDownListGenre()
    {
        ArtistTrackingServiceClient asc = new ArtistTrackingServiceClient();
        int          key    = (int)Session["FanKey"];
        List <Genre> genres = asc.GetGenres().ToList();

        DropDownListGenre.DataSource     = genres;
        DropDownListGenre.DataTextField  = "GenreName";
        DropDownListGenre.DataValueField = "GenreKey";
        DropDownListGenre.DataBind();
    }