public static int GetRecordCount(string TabName, string str1, string str2) { int i = ConnHelper.GetRecordCount("select count(*) from " + TabName + " where " + str1 + " = '" + str2 + "'"); return(i); }