private void FillGenres() { ArtistTrackingServiceClient atsc = new ArtistTrackingServiceClient(); int key = (int)Session["FanKey"]; List <Genre> genres = atsc.GetGenres().ToList(); DataList2.DataSource = genres; DataList2.DataBind(); }
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(); }