birth control & weight

can you gain weight on both the mini and combo pill? or just one only? how do you PREVENT gaining weight while on the pill?