Does anyone can help me?

Topics: Developer Forum, Project Management Forum, User Forum
Jul 1, 2014 at 10:12 AM
Edited Jul 1, 2014 at 10:12 AM
DataBinding: 'FlickrNet.Photo' does not contain a property with the name 'Square'.
Please check: http://www.atillakoklu.com/Photography.aspx
I can't get my photos after FlickrNet.dll 3.10.0v
Coordinator
Jul 1, 2014 at 10:14 AM
I think its pretty self explanatory. There is no property called "Square" on the Photo class.

Try SquareThumbnailUrl or LargeSquareThumbnailUrl instead perhaps?

Sam
Jul 1, 2014 at 10:17 AM
Edited Jul 1, 2014 at 10:19 AM
I tried them all. I want square size (75x75)
Please chech again my website.
Coordinator
Jul 1, 2014 at 10:20 AM
SquareThumbnailUrl is the 75x75 thumbnail.

Sam
Jul 1, 2014 at 10:25 AM
OK
How to I get SquareThumbnailUrl?
Coordinator
Jul 1, 2014 at 11:18 AM
Edited Jul 1, 2014 at 11:19 AM
You are using Data binding, so in your data binding where you have "Square" replace it with "SquareThumbnailUrl" instead.

Sam
Jul 1, 2014 at 11:32 AM
I changed the code from your sample bu 'PhotostreamDataSource'
The type specified in the TypeName property of ObjectDataSource 'PhotostreamDataSource' could not be found.
Coordinator
Jul 1, 2014 at 11:58 AM
If you take my basic sample and want the 75x75 square thumbnail then the only thing you need to change is
DataImageUrlField="LargeSquareThumbnailUrl"
and replace it with
DataImageUrlField="SquareThumbnailUrl"
Without seeing what other changes you have made I can't work out what you've done to cause the error above, apart from remove or rename the ObjectDataSource.

Sam
Jul 1, 2014 at 1:37 PM
Edited Jul 1, 2014 at 1:38 PM
I downloaded your sample but there are error.
I back my old codes:
<div id="gallery">  
    <asp:DataList  ID="dsFoto" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">        
    <ItemTemplate>
        <a href="<%# Eval("MediumUrl") %>" onclick="WebMon.sendEvent('<%# Eval("Title")%>','Photo')"
        title="<%# Eval("Title")%> | <a href=<%# Eval("WebUrl") %> target=_blank>flickr</a>" >
        <img src="<%# Eval("Square") %>" alt="" title="<%# Eval("Title") %>" class="foto" /></a>
    </ItemTemplate>
    </asp:DataList>
    </div>
and look here: http://www.atillakoklu.com/Photography.aspx
Coordinator
Jul 1, 2014 at 1:50 PM
So change Eval("Square") to Eval("SquareThumbnailUrl") then.
Jul 1, 2014 at 2:01 PM
Error:

DataBinding: 'FlickrNet.Photo' does not contain a property with the name 'Square'.

It was work before Flickr API SSL :(
Look: http://www.atillakoklu.com/Photography.aspx
Coordinator
Jul 1, 2014 at 2:08 PM
There is no property called "Square" on the Photo class. I've told you how to fix this twice already. Change "Square" to "SquareThumbnailUrl".
Jul 1, 2014 at 2:16 PM
<img src="<%# Eval("SquareThumbnailUrl") %>" alt="" title="<%# Eval("Title") %>"
Is there Square? http://www.atillakoklu.com/Photography.aspx
Coordinator
Jul 1, 2014 at 2:30 PM
Jul 1, 2014 at 3:16 PM
I sent you my project.
Coordinator
Jul 1, 2014 at 3:19 PM
I think you need to upgrade to the latest version of the code. Can you use NuGet?

Sam
Jul 1, 2014 at 4:11 PM
Im using visual studio 2010 ultimate.
Created a new project but the same problem. :(

NuGet?
Coordinator
Jul 1, 2014 at 10:03 PM
NuGet is a simple and easy way of getting the latest version of many software libraries, including this one:

http://docs.nuget.org/docs/start-here/installing-nuget

You'll need the NuGet extension from here: http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c

I'm adding a few more features and fixing another bug, but then I plan to release a new version later today or tomorrow, and I'll add that to the codeplex download page as well.

Sam