public void ProcessRequest(HttpContext context) { DataClasses1DataContext db = new DataClasses1DataContext(); var userInfo = new userInfo { username = context.Request.QueryString["username"], password = context.Request.QueryString["password"] }; db.userInfo.InsertOnSubmit(userInfo); db.SubmitChanges(); context.Response.Write("<script language='JavaScript'>" + "alert('注册成功');" + "setTimeout(function(){window.location.href='/login';},1000)" + "</script>"); }
partial void UpdateuserInfo(userInfo instance);
partial void DeleteuserInfo(userInfo instance);
partial void InsertuserInfo(userInfo instance);