My if below for some reason checks for the first but not the second condition.
The first it checks the user/passwd against a db and the second is a hard code user and passowrd.
When I enter the hard coded user/passwd, it doesn't let me thru, only using the db user/passwd.
Any idea what is wrong?
if ((userTxt == userDB && passwdTxt == passwdDB) ||
(userTxt == "user" && passwdTxt == "test"))
{
switch (frmMdiMain.loginPageText)
{
case "exit":
mainPage.Hide();
Application.Exit();
break;
case "internal":
mdiInternalUse internUseForm = new mdiInternalUse();
internUseForm.Show();
this.Close();
break;
default:
break;
}
}