The viruses that cause gastroenteritis are transmitted from person to person. Viruses are present in the stool and vomit of people who are infected.