i declare int _accountid;
the value always 0 i don't know why.Code://Read the data and store them in the list if (dataReader.HasRows) { if (dataReader.Read()) { _dbReader = Convert.ToString(dataReader["user_pass"]); >>>>>>>>>>>>>>>>> _accountid = Convert.ToInt32(dataReader["account_id"]); if (_dbReader == password) { _check = true; } else { MessageBox.Show("Incorrect password."); } } }




Reply With Quote