sqlCommandCheckLogin.Parameters["cardNumber"].Value = cardNo.Text; sqlCommandCheckLogin.Parameters["PIN"].Value = pinNumber.Text; try { //not sure what to put here } catch (Exception ex) { switch (ex.Message) { case "1": MessageBox.Show("You have 2 attempts left"); break; case "2": MessageBox.Show("You have 1 attempts left"); break; case "3": MessageBox.Show("Your id is not blocked"); break; }
if( (int)cmd.ExecuteScalar() == 1 ) { // Next form } else { // Display error }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)