예제 #1
0
        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>");
        }
예제 #2
0
 partial void UpdateuserInfo(userInfo instance);
예제 #3
0
 partial void DeleteuserInfo(userInfo instance);
예제 #4
0
 partial void InsertuserInfo(userInfo instance);