public int validateAccount(String username, String password) { conn.Connect("3"); Hashtable listParams = new Hashtable(); listParams.Add("@loginName", username); SqlDataReader rd = conn.ExecProcParams("getLoginInfo", listParams); if (rd.Read()) { return(1); } return(0); }