in the "OnClientClick" event you should user "return" and then after the OnClientClick event, it will get to the server side and do the OnClick event.
example:
<asp:LinkButton ID="lbClickPhoto" CssClass="link" ForeColor="Blue" runat="server" OnClick="lbClickPhoto_Click" OnClientClick="return TestFunc();">Click Photo</asp:LinkButton>