Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            UserInfoBLL bll = new UserInfoBLL();
            UserInfo    ui  = new UserInfo();

            ui.UserName     = Request["txtName"];
            ui.UserPwd      = MD5Encrypt.MD5Check(Request["txtPwd"]);
            ui.Email        = Request["txtEmail"];
            ui.Address      = Request["txtAddress"];
            ui.MobilePhone  = Request["txtMobilePhone"];
            ui.RegisterTime = System.DateTime.Now;

            bool flag = bll.InsertUserInfo(ui);

            if (flag)
            {
                Context.Response.Write("ok");
            }
            else
            {
                Context.Response.Write("no");
            }
        }