ASP.NET鲜花在线销售网站(9)

来源:xiaoniu168.com 作者:本站原创 添加时间:2011-11-19 点击数:35730

计算机毕业设计用户注册功能介绍:

(四)用户注册
此模块主要是提供新用户信息注册。用户注册信息时,判断客户昵称,真实姓名,付款帐号是否为空,输入的密码和确认密码是否一致。然后输入密码、确认密码、联系地址、生日、Email、付款账号,注册和返回操作。如图:
计算机毕业论文

以下是引用片段:

相关代码如下:
        if (this.TextBox1.Text.Trim() == "" || this.Textbox8.Text == "" || Textbox9.Text =="" )
        {
            this.TErr.InnerHt = "客户昵称、付款帐号或真实姓名不能为空";
            return;
        }
        if (this.Textbox5.Text.Trim() != this.Textbox6.Text.Trim())
        {
            this.TErr = "密码不一致!";
            return;
        }
        if (this.Textbox5.Text.Length < 6)
        {
            this.TErr. = "密码长度不能小于6位!";
            return;
        }
        try
        {
            Int32  dt = Convert.ToInt32(TextBox3.Text);
        }
        catch
        {
            this.TErr.
            return;
        }
        
        try
        {
            DateTime dt = Convert.ToDateTime(TextBox4.Text );
        }
        catch
        {
            this.TErr.>日期输入不正确;";
            return;
        }
        finally
        {
 
        }
        DataTable tmpda = new DataTable();
        tmpda = DataControl.GetDataTable("select * from YHXX where Kh='" + this.TextBox1.Text.Trim() + "'");
        if (tmpda.Rows.Count > 0)
        {
            this.TErr.In= "<>客户昵称重复>";
            return;
        }
        tmpda = DataControl.GetDataTable("select * from YHXX where Email='" + this.Textbox7.Text.Trim() + "'");
        if (tmpda.Rows.Count > 0)
        {
            this.TErr.InnerHt>";
            return;
        }
        //添加注册的用户信息到数据库中
        DataControl.ExecSql("insert into YHXX(kh,mm,lxdz,dh,sr,Email,IDCount,真实姓名) values('" + this.TextBox1.Text.Trim() + "','" + this.Textbox5.Text.Trim() + "','" + this.Textbox2.Text.Trim() + "','" + this.TextBox3.Text.Trim() + "','" + this.TextBox4.Text.Trim() + "','" + this.Textbox7.Text.Trim() + "','" + this.Textbox8.Text.Trim() + "','"+  Textbox9.Text  +"')");
        Session["User"] = this.TextBox1.Text.Trim();
        Response.Redire");

〖资料来源:计算机毕业论文 www.xiaoniu168.com

第10页为计算机毕业论文购物车模块介绍......

【联系方式】

【本站信誉】

用心做计算机毕业设计论文网