OTTAWA, Ontario (AP) Ottawa got chances when they were most needed.
Bobby Ryan had a goal and an assist and the Senators scored three times in the third period to beat the San Jose Sharks 4-2 on Friday night for their fourth straight home win.
Craig Anderson made 31 saves to help Ottawa win for the second time in five games. The Senators have won just two of their past five games.
Jean-Gabriel Pageau, Chris Wideman and Erik Karlsson all scored in the third period.
''We had chances,'' Ryan said. ''We got a lot of shots in there and there a lot of positives for us to build on.''
Joe Thornton and Brent Burns had the goals for the Sharks, and Alex Stalock made 31 saves.
Pageau started and finished the play that gave the Senators a 2-1 lead 8:22 into the third period. After Pageau's faceoff win, Cody Ceci took a shot, and then Dave Dziurzynski fired the rebound back at net. Stalock got a piece of Dziurzynski's shot but left the rebound right on the goal line for Pageau to poke in.
''I don't know if I stole it from (Dziurzynski), I wish he would have scored but when it's 1-1 like that you want to make sure it's in,'' Pageau said. ''He made a good play to spin around and take a shot on net, but I guess I stole it.''
Wideman got the eventual winner and Karlsson provided some insurance with goals later in the period.
''Feels good to get anything at this point,'' Wideman said of his first goal in 15 games. ''I've had a lot of shots the last couple of games, I saw a little day light and it got through. I think it was a huge win.''
Burns closed out the scoring with 2:24 left. The Sharks also lost 5-4 to the Toronto Maple Leafs on Thursday night.
''We came out, for back-to-back games the way we wanted to,'' Sharks defenseman Paul Martin said. ''We were able to control some of the play and we had our moments but in the third we gave them some opportunities with some odd-man rushes and they capitalized.''
The first period had no goals but plenty of action. The teams combined for 25 shots amid odd-man rushes, struck goal posts, brilliant saves and several scoring chances.
Thornton opened the scoring just 29 seconds into the second with a power-play goal after he took a pass from Burns and beat Anderson with a wrist shot from the slot.
The lead was short lived. Ryan scored just over 4 minutes later by cutting in front of the net and jamming a puck through Stalock.
Notes: Jared Cowen was the lone scratch for the Senators. Logan Couture, Mike Brown and Matt Tennyson were scratches for the Sharks. ... Ryan is one goal shy of 200 for his career. He has 52 with the Senators. ... Sharks defenseman Marc-Edouard Vlasic has 199 career points. ... Sharks forward Patrick Marleau has played in 492 consecutive games dating back to April 9, 2009. ... The Senators have two games before Christmas, travelling to Florida for games against the Tampa Bay Lightning on Sunday and Florida Panthers on Tuesday night. ... The Sharks close out a five-game trip with games against the Chicago Blackhawks on Sunday and Los Angeles Kings on Tuesday night before heading home for Christmas.