예제 #1
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";
        }
    }