Here is the advice given to me by my doctor when ever you get a stomach bug.
To avoid dehydration continue to drink fluids and gradually eat a bland diet such as the BRAT diet (bananas, rice, applesauce, and dry toast). A bland diet is easily digested and is unlikely to irritate your stomach.
Hope it helps
Art