I agree with a lot Beanz says, you have to be head strong when climbing and try to stay positive..
Most riders get into trouble on climbs by forcing the pace at the bottom of the climb and then burning out before hitting the top..
Work on building your pace up a climb, starting a little slower at the bottom and building your pace towards the top...