Hi,
i have a user table in backend with many columns n from that i need to user the email id and password for login. I have read the data in my code using a data reader, but am not getting how to match the entered username and password by user with the backend data.
If any one can pls guide with same...
Thanks
protected void btnLogin_Click(object sender, EventArgs e)
{
//string cmd1 = ("Select email, password from fwm_user");
//DataSet ds;
//SqlDataAdapter da = new SqlDataAdapter(cmd1, conn1);
//da.Fill(ds, "fwm_user");
SqlCommand cmd1 = ("Select email, password from fwm_user");
SqlDataReader dr;
dr = cmd1.ExecuteReader();
if (dr.Read())
{
if(dr.GetString ........??????????????
}
}