The reason he piddled on the floor in the first place is because he wasn't put outside on time. Dogs thrive on routine, so keeping to a schedule is important. To get your pup accustomed to his crate place a blanket and some of his toys inside, along with some food, water and treats. When your pet is not in his crate, leave the door open. You will notice that sometimes he will go in there on his own to sleep.
Crates tend to be like dens, it's their own space to get away from everything.
Once you begin to trust your pet further and he begins to learn as he grows older, then periods in the crate can become shorter, or even unnecessary. At night if you do not allow your pup to sleep with you, then placing him in the crate for the night is acceptable and in no way will it harm your pet. If he should begin to cry, then placing the crate in your bedroom where he can hear you sleeping will help to reassure him that he is not alone. Puppy Pens are great for outdoor activities. They range in size from 4' x 4' and up.