ASP.NET网上订餐系统(10)

来源:xiaoniu168.com 作者:本站原创 添加时间:2011-12-16 点击数:32437

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

5.4 用户注册页面
此模块主要是提供新用户信息注册。用户注册信息时,判断帐号,真实姓名是否为空,输入的密码和确认密码是否一致。然后输入密码、确认密码、联系电话、家庭地址、出生日期等,注册和返回操作。

以下是引用片段:

if (Session["UserID"] == null)
        {
            //添加注册的会员信息到数据库中
            DataBase.ExecSql("insert into hyxx(hydlm,mm,xb,xm,dz,dh,sr,Email,sfzh) " +
                        " values('" + this.TextBox1.Text.Trim() + "','" + this.Textbox5.Text.Trim() + "','" + this.txtxb.SelectedValue + "', " +
                        " '" + this.Textbox2.Text.Trim() + "','" + this.TextBox3.Text.Trim() + "'," +
                        " '" + this.TextBox4.Text.Trim() + "','" + this.Textbox7.Text.Trim() + "'," +
                        " '" + this.Textbox8.Text + "','" + Textbox10.Text.Trim() + "')");

        }
        else
        {
            //更新当前的会员信息
            if (this.Textbox5.Text.Trim() != "********")
            {
                DataBase.ExecSql("update hyxx set mm='" + this.Textbox5.Text.Trim() + "'," +
                 " xm='" + this.Textbox2.Text.Trim() + "',dz='" + this.TextBox3.Text.Trim() + "', " +
                  " dh='" + this.TextBox4.Text.Trim() + "',sr='" + this.Textbox7.Text.Trim() + "'," +
                 " email='" + this.Textbox8.Text + "' where hydlm= '" + Session["UserID"].ToString() + "'");
            }
            else
            {
                DataBase.ExecSql("update hyxx set " +
                 " xm='" + this.Textbox2.Text.Trim() + "',dz='" + this.TextBox3.Text.Trim() + "',  " +
                 " dh='" + this.TextBox4.Text.Trim() + "',sr='" + this.Textbox7.Text.Trim() + "'," +
                 " email='" + this.Textbox8.Text + "' where hydlm= '" + Session["UserID"].ToString() + "'");

            }
        }

        Session["UserName"] = this.Textbox2.Text.Trim();
        Session["UserID"] = this.TextBox1.Text.Trim();

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

第11页为计算机毕业论文预定功能介绍......

【联系方式】

【本站信誉】

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