以下是引用片段: if (this.Textbox5.Text.Trim() != this.Textbox6.Text.Trim()) { this.TErr.密码不一致!"; return; } //判断会员帐号是否重复 DataTable tmpda = new DataTable(); tmpda = DataBase.Get_Table("select * from 学生 where 会员号='" + this.TextBox1.Text.Trim() + "'"); if (tmpda.Rows.Count > 0) { this.TErr.此会员号已经存在,请重新输入!<>"; return; } //添加注册的学生信息到数据库中 DataBase.ExecSql("insert into 学生(会员号,姓名,学校,身份证,审核标志,密码,注册时间) " + " values('" + this.TextBox1.Text.Trim() + "','" + this.Textbox2.Text.Trim() + "', " + " '" + this.TextBox3.Text.Trim() + "','" + this.Textbox10.Text.Trim() + "'," + " '等待','" + this.Textbox5.Text + "','"+ DateTime.Now.ToShortDateString() +"')"); DataBase.ExecSql("insert into 简历(姓名,毕业院校,身份证号,会员号) values('" + Textbox2.Text + "','" + TextBox3.Text + "','" + Textbox10.Text + "','" + TextBox1.Text + "')"); Response.注册成功,等待管理员审核');window.location.href='index.aspx'"); }
|