// private bool ValidateLogin(String Account, String Password) { Common.DataBase dataBase = new Common.DataBase(); try { DataSet myds = dataBase.RunProcReturn("select count(*) from users where UserName='******' and password='******'"); if (myds.Tables[0].Rows[0][0].ToString() == "1") { Common.CGlobal.userName = Account; } else { Common.CGlobal.userName = ""; } } catch { Common.CGlobal.userName = ""; } if (Common.CGlobal.userName == "") { return(false); } else { return(true); } }