Exemple #1
0
    protected void FanLogin()
    {
        FanServices.FanServiceClient rs = new FanServices.FanServiceClient();
        int key = rs.FanLogin(userTextBox.Text, passTextBox.Text);

        if (key != 0)
        {
            //errorLabel.Text = "Welcome!";
            Session["Userkey"] = key;
            Response.Redirect("Fans.aspx");
        }
        else
        {
            errorLabel.Text = "Invalid Login";
        }
    }
Exemple #2
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";
        }
    }
Exemple #3
0
    protected void RegisterFan()
    {
        FanServices.FanServiceClient register = new FanServices.FanServiceClient();

        string fanName     = userTextBox.Text;
        string fanEmail    = emailTextBox.Text;
        string fanPassword = passTextBox.Text;

        bool result = register.RegisterFan(fanName, fanEmail, fanPassword);

        if (result)
        {
            Response.Redirect("showExplorer.aspx");
        }
        else
        {
            errorLabel.Text = "Registration Failed";
        }
    }