做用户身份验证 路上迷路
新手跬学:我在做用户身份验证时,做到此处就不知道如何继续下一步怎么做,请哥哥,姐姐们帮帮我。原码如下:private void login_btn_Click(object sender, System.EventArgs e)
{
if (this.usename_text.Text == "" || this.pwd_text.Text == "")
{
Response.Write("<script defer>alert('请每项都输入!');</script>");
}
else
{
SqlConnection con=DB.Creat();
con.Open();
SqlCommand cmd=new SqlCommand("select usename,usepwd from uses where usename='"+this.usename_text.Text+"'and usepwd='"+this.pwd_text.Text+"',con");
//不知道下一步怎么做
}