Example #1
0
 protected void FanLogin()
 {
     RegistrationServiceReference.LoginServiceClient lsc = new RegistrationServiceReference.LoginServiceClient();
     int key = lsc.FanLogin(UserNameTextBox.Text, PasswordTextBox.Text);
     if (key != 0)
     {
         Session["FanKey"] = key;
         ResultLabel.Text = "Welcome";
     }
     else ResultLabel.Text = "Invalid Login";
 }