try aas:
<asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="<%$ ConnectionStrings:ConnString %>" xmlns:asp="#unknown">
SelectCommand="SELECT [PhotoId], [PhotoTitle], [PhotoPath], [PostedDate],[UNC_PhotoPath], [Thumbs_Path] FROM [JFP_PHOTO_GALLERY] ORDER BY [PhotoId] DESC">
in web.congig add:
<add name="ConnString" providername="System.Data.SqlClient" connectionstring="server= xyz;database=xxx;User id=usr_id;Password=xxxxx" />