The act of inserting the handle of a toilet into your anus and shit around the handle.
The toilet didn't have a tank for an upper-decker so Ted put the handle in his anus, thus corndogging.