private void btnNext_Click(object sender, System.EventArgs e)
{
if(Page.IsValid)
{
strConn="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=1.mdb;Persist Security Info=False";
cn=new OleDbConnection(strConn);
strSQL="select u_id from userinfo where u_account='"+txtAccount.Text.ToString()+"'";
//strSQL="select u_id from userinfo where u_account='juw'";
cn.Open();
cmd=new OleDbCommand(strSQL,cn);
dr=cmd.ExecuteReader();
if(dr.Read())
{
lblStep2.Text="您输入的用户名已经存在,请您选择一个其他的名字!";
cn.Close();
//txtAccount.Text="";
}
else
{
cn.Close();
lblPwd.Text=txtUpwd.Text.ToString();
step1.Visible=false;
step2.Visible=false;
step3.Visible=true;
step4.Visible=false;
}
}
}