protected void btnLogin_Click(object sender, EventArgs e) { var svc = new RemoteEducationalServicesWebServiceProxy.RemoteEducationalServicesWebServiceSoapClient(); var loggedIn = svc.ValidateCredentials(txtUser.Text.ToString(), txtPass.Text.ToString()); if (loggedIn) { Response.Redirect("~/Pages/Booking.aspx"); } else { lblStatus.ForeColor = System.Drawing.Color.Red; lblStatus.Text = "Incorrect Detials"; } }
protected void btncreate_Click(object sender, EventArgs e) { var svc = new RemoteEducationalServicesWebServiceProxy.RemoteEducationalServicesWebServiceSoapClient(); var createUser = svc.CreateDeveloperAccount(); }