protected void ReviewerLogin() { LoginServiceReference.BookReviewLoginServiceClient brc = new LoginServiceReference.BookReviewLoginServiceClient(); int key = brc.ReviewerLogin(UserNameTextBox.Text, PasswordTextBox.Text); if (key != -1) { ErrorLabel.Text = "Welcome!"; Session["userKey"] = key; } else { ErrorLabel.Text = "Login Failed"; } }
protected void SubmitReviewer() { LoginServiceReference.BookReviewLoginServiceClient brs = new LoginServiceReference.BookReviewLoginServiceClient(); LoginServiceReference.ReviewerLite rlite = new LoginServiceReference.ReviewerLite(); rlite.LastName = LastNameTextBox.Text; rlite.FirstName = FirstNameTextBox.Text; rlite.Email = EmailTextBox.Text; rlite.UserName = UserNameTextBox.Text; rlite.Password = ConfirmTextBox.Text; int result = brs.ReviewerRegistration(rlite); if (result != -1) { ResultLabel.Text = "Registration is successful"; } else { ResultLabel.Text = "Registration failed"; } }
protected void SubmitReviewer() { LoginServiceReference.BookReviewLoginServiceClient brs = new LoginServiceReference.BookReviewLoginServiceClient(); LoginServiceReference.ReviewerLite rlite = new LoginServiceReference.ReviewerLite(); rlite.LastName = LastNameTextBox.Text; rlite.FirstName = FirstNameTextBox.Text; rlite.Email = EmailTextBox.Text; rlite.UserName = UserNameTextBox.Text; rlite.Password = ConfirmTextBox.Text; int result = brs.ReviewerRegistration(rlite); if (result != -1) { ResultLabel.Text = "Registration is successful"; }else{ ResultLabel.Text = "Registration failed"; } }