public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string name = context.Request.Form["name"]; string mail = context.Request.Form["mail"]; string password = context.Request.Form["password"]; string school = context.Request.Form["school"]; string schoolId = context.Request.Form["schoolId"]; string phonenum = context.Request.Form["phone"]; //封装用户对象 Model_User user = new Model_User(); user.UserName = name; user.UserMail = mail; user.UserPassword = password; user.School = school; user.SchoolNum = schoolId; user.PhoneNum = phonenum; //context.Response.Write(name + mail + password + school + schoolId); bool res = BLL_UserManagement.SignUp(user); if (res == true) { context.Response.Write("success"); } else { context.Response.Write("fail"); } }
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string phone = context.Request.Form["userPhone"]; string passeword = context.Request.Form["userPWD"]; Model_User user = new Model_User(); user.PhoneNum = phone; user.UserPassword = passeword; string res = BLL_UserManagement.LogIn(user); context.Response.Write(res); //context.Response.Write(name + passeword); }