The key to having acceptable behavior in your dog is early training. This includes toilet and house training as much as any other of the basic dog commands.