zoukankan      html  css  js  c++  java
  • 注册页面所涉及的知识

            注册页面所涉及的知识

           string pwd1 = txtPassWord1.Text;

            string pwd2 = txtPassWord2.Text;
            if (pwd1 != pwd2)
            {
                LblMsgShowError.Visible = true;
                LblMsgShowError.Text = "密码不一致!";
                return;

            }

            //匹配正则表达式

            Regex r = new Regex(@".+@+.");
            if (!r.IsMatch(lblEmail.Text))
            {
                LblMsgShowError.Visible = true;
                LblMsgShowError.Text = "邮箱格式不一致!";
                return;      
            }
            T_UserTableAdapter adapter = new T_UserTableAdapter();
            if (adapter.GetDataByUserName(txtUserName.Text).Count > 0)
            {
                LblUserNameError.Visible = true;

                LblUserNameError.Text = "此用户名已经存在";

            }

             //  通过插入得到插入自动增长的id

            long userId =Convert.ToInt64(adapter.InsertUser(this.txtUserName.Text,this.txtPassWord1.Text,txtEmail.Text));

            JQuery判断密码强度

          

  • 相关阅读:
    3、SpringBoot执行原理
    10、@Controller跟@RestController注解的使用
    2、Spring项目的创建【官网跟IDEA】
    1、了解SpringBoot
    PHP算法之IP 地址无效化
    PHP算法之宝石与石头
    MYSQL查询查找重复的电子邮箱
    PHP算法之猜数字
    PHP算法之盛最多水的容器
    PHP算法之回文数
  • 原文地址:https://www.cnblogs.com/wangyhua/p/4050683.html
Copyright © 2011-2022 走看看