Beispiel #1
0
    protected void GetFanLogin()
    {
        ServiceReference1.STLoginServiceClient src =
            new ServiceReference1.STLoginServiceClient();
        int key = src.FanLogin(PasswordTextbox.Text, UserNameTextbox.Text);

        if (key != -1)
        {
            ErrorLabel.Text    = "Welcome";
            Session["userKey"] = key;
            Response.Redirect("FanDashboard.aspx");
        }
        else
        {
            ErrorLabel.Text = "Login Fail";
        }
    }
Beispiel #2
0
    protected void SubmitButton_Click(object sender, EventArgs e)
    {
        ServiceReference1.STLoginServiceClient src =
            new ServiceReference1.STLoginServiceClient();
        ServiceReference1.FanLite fLite =
            new ServiceReference1.FanLite();

        fLite.fanName               = FanNameTextBox.Text;
        fLite.fanEmail              = EmailTextBox.Text;
        fLite.fanLoginUserName      = UsernameTextBox.Text;
        fLite.fanLoginPasswordPlain = PasswordTextBox.Text;


        int result = src.FanRegistration(fLite);

        if (result != -1)
        {
            ResultLabel.Text = "Successfully Registered";
        }
        else
        {
            ResultLabel.Text = "Registration Failed";
        }
    }