Now, I haven't tried this myself, but two of my sisters-in-law did with great success. You have the child in the house without any underwear or pants. They don't like the wet feeling when they go to the bathroom and will soon learn to use the potty.
For my son we used the cool big boy underwear approach. He just couldn't wait to wear them and we had no trouble.