示例#1
0
    protected void FollowThisArtist()
    {
        FanServices.FanServiceClient rs = new FanServices.FanServiceClient();
        int    fanKey     = Convert.ToInt32(Session["Userkey"]);
        string artistName = ArtistDropDownList.SelectedItem.Text;

        bool result = rs.AddFanArtist(fanKey, artistName);

        if (result)
        {
            artistAdded.Text = " The artist was added to your follow list";
        }
        else
        {
            artistAdded.Text = "Adding the artist was not successful";
        }
    }