コード例 #1
0
        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";
            }
        }
コード例 #2
0
 protected void btncreate_Click(object sender, EventArgs e)
 {
     var svc        = new RemoteEducationalServicesWebServiceProxy.RemoteEducationalServicesWebServiceSoapClient();
     var createUser = svc.CreateDeveloperAccount();
 }