You asked

What can I do to prevent my toddler from waking up in the middle of the night?

By the age of 22 months, your toddler's sleeping routine in the day might need to change to lessen the chance of them waking up during the night. Experiment a bit with limiting the length of their afternoon nap. They just need to be refreshed for the rest of the day, not over-rested.

Be sure to follow a short bed time routine for your toddler. This will train them to go to sleep by themselves. If they are used to going to sleep without you near them, or holding them, then it will be easier for them to get back to sleep after a late night disturbance in their sleep pattern.

Between 18 and 24 months, your toddler might start climbing out of their crib. This can cause serious injury. You should make it more difficult for them to get out, by lowering the mattress height and removing stuffed toys that they can use as stepping platforms.

If your child still persists in climbing out, consider buying a cover for their crib, or moving them onto a bed or mattress on the floor. Beds can be fitted with safety slats to prevent accidental falls during the child's sleep. It will take a night or two to get your child used to the new sleeping arrangements and the novelty will wear off, allowing them to establish new sleeping habits.

More questions

A parent wants their child to have everything because they love them. But showing your love without spoiling your child rotten is difficult at best.
Most people believe that sugar is the main cause of hyperactivity in children
Most parents will resort to using threats to discipline their children. This tactic is not effective and does not each your child anything.
A two year old has a limited vocabulary and too often, the word “no” is one of their favourite words.
Dealing with your toddler's back chat
Waking up in the middle of the night is normal for toddlers and it could indicate that their afternoon nap is too long.
Disciplining a toddler does not involve punishment, but teaching them right from wrong.
If you begin teaching your child rules and acceptable behaviour early on, you’ll have a much easier time later.
Tantrums are a normal part of a toddler's development and are a means of venting their frustration and anger.