David Noble's last-gasp 30-yard goal enabled Bristol City to stun Crystal Palace 2-1 in a thrilling Championship play-off semi-final first leg.
The former West Ham trainee struck in stoppage-time, shortly after Ben Watson's penalty had cancelled out Louis Carey's opener.
Carey, the Bristol-born defender and City captain, had picked the perfect time to score his first goal of the season, a stunning curling effort which gave Julian Speroni no chance after a well-worked free-kick routine in the 53rd minute.
Carey then blotted his copybook by conceding the 86th-minute penalty, dragging down Jose Fonte, which allowed Watson to put Palace level from the spot.
But Noble's stunner during six minutes of added time gives Gary Johnson's side the advantage in what is set to be a blockbusting second leg at Ashton Gate on Tuesday.