Bobby Ryan has a goal and an assist to lead Senators over Sharks 4-2

Ottawa Senators center Kyle Turris pushes San Jose Sharks defenseman Marc-Edouard Vlasic off the puck during first-period NHL hockey game action Friday, Dec. 18, 2015, in Ottawa, Ontario. (Adrian Wyld/The Canadian Press via AP) MANDATORY CREDIT (The Associated Press)

San Jose Sharks goalie Alex Stalock, left, kicks aside a shot from Ottawa Senators center Kyle Turris (7) who is tied up by Sharks defenseman Marc-Edouard Vlasic, center, during first-period NHL hockey game action Friday, Dec. 18, 2015, in Ottawa, Ontario. (Adrian Wyld/The Canadian Press via AP) MANDATORY CREDIT (The Associated Press)

Ottawa Senators goalie Craig Anderson, left, makes a save as San Jose Sharks right wing Joel Ward, center, battles in front of the net with Senators center Jean-Gabriel Pageau during second-period NHL hockey game action Friday, Dec. 18, 2015, in Ottawa, Ontario. (Adrian Wyld/The Canadian Press via AP) MANDATORY CREDIT (The Associated Press)

Bobby Ryan had a goal and an assist, Craig Anderson made 31 saves and the Ottawa Senators beat the San Jose Sharks 4-2 on Friday night for their fourth straight home win.

Ottawa has won just two of its past five games. Jean-Gabriel Pageau, Chris Wideman and Erik Karlsson also scored.

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.

Wideman got the eventual winner and Karlsson provided some insurance with goals later in the period.