A transfer switch is the proper way. Live in a hurricane prone area like I do, and you quickly learn taking shortcuts with dryer outlets is not the way to go, as some of my neighbors stubbornly insist on doing.
If you're gonna use a dryer receptacle to power your CB panel, you should shut off ALL the breakers, especially the main breaker before plugging the genny into your dryer receptacle. Then put a piece of electrical tape over the main breaker just to make sure you don't turn it on by mistake. The tape won't stop the CB from operating, but it will serve as a warning to not turn it on with the genny operating. Then turn on only the breakers you need after you get the panel juiced up with the genny.
Rule of thumb, voltage times amperage = wattage. Don't exceed the capacity of the genny. Try to keep it running at 80% of it's rated wattage. All electrical devices should have nameplates on them that will tell you the amperage draw. Just add up all the amps of the devices you NEED and multiply that figure by 117 and you'll have a rough, but good, idea of how much wattage you're drawing from the genny.
All that said, I'm finally giving up and I'm gonna buy a big genny with the transfer switch. I've been considering one for a while and I see them priced at ~ $6,000. Little enough to put out for peace of mind.