ASP.NET航空售票系统(7)

来源:xiaoniu168.com 作者:本站原创 添加时间:2011-10-24 点击数:33341

计算机毕业设计用户注册页面介绍:

RegU(用户注册)
用户可以在此页面进行注册,注册信息包括用户名、密码、确认密码、姓名、身份证、地址和联系电话,如图:
计算机毕业论文

以下是引用片段:

其主要代码实现过程如下:
 private void Button2_Click(object sender, System.EventArgs e)
  {
   //判断信息是否正确
   if(this.Textbox2.Text != this.Textbox3.Text)
   {
    this.TErr.InnerHtml="密码不相同,重新操作";
    return;
   }
   if(DataBase.Get_Table("select * from yhxx where yhm='"+ this.TextBox1.Text +"'").Rows.Count>0)
   {
    this.TErr.InnerHtml="用户名重复,重新操作";
    return;
   }
   //添加新的用户注册信息 跳转页面
   DataBase.ExecSql("insert into Yhxx values('"+ this.TextBox1.Text +"','"+ this.Textbox2.Text +"','"+ this.Textbox4.Text +"','"+ this.Textbox7.Text +"','"+ this.Textbox8.Text +"','"+ this.Textbox5.Text +"')");
   Session["yhm"]=this.TextBox1.Text;
   Response.Redirect("User/Index.aspx");

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

第8页为计算机毕业论文航班信息介绍......

【联系方式】

【本站信誉】

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