示例#1
0
    private void FillArtists()
    {
        ArtistTrackingServiceClient atsc = new ArtistTrackingServiceClient();
        int           key     = (int)Session["FanKey"];
        List <Artist> artists = atsc.GetArtists().ToList();

        DataList1.DataSource = artists;
        DataList1.DataBind();
    }
示例#2
0
    private void FillDropDownListArtist()
    {
        ArtistTrackingServiceClient asc = new ArtistTrackingServiceClient();
        int           key     = (int)Session["FanKey"];
        List <Artist> artists = asc.GetArtists().ToList();

        DropDownListArtist.DataSource     = artists;
        DropDownListArtist.DataTextField  = "ArtistName";
        DropDownListArtist.DataValueField = "ArtistKey";
        DropDownListArtist.DataBind();
    }
示例#3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["FanKey"] == null)
        {
            Response.Redirect("Login.aspx");
        }
        ArtistTrackingServiceClient asc = new ArtistTrackingServiceClient();
        int           key  = (int)Session["FanKey"];
        List <Artist> arts = asc.GetArtists().ToList();

        //did not get method working to display if preferences already chosen
        /*string aprf = asc.GetPrefs(key).ToString();*/

        FillArtists();
        FillGenres();
        FillDropDownListArtist();
        FillDropDownListGenre();

        /*FillPreferences(aprf);
         * did not get method working to display if preferences already chosen
         */
    }