How to set an fbml element's property in code behind?

Mar 20, 2009 at 3:23 PM
I am a newbie just starting to learn facebook development.
I have an fbml  tag  and my page derives from CanvasFBMLBasePage

I have this tag in my aspx file:

<fb:photo pid="" idname="photo1"/>



My question is: How do I set the pid for the photo lin the code behind ?

I wanted to do set the pid in the page_load event, cannot figure out how.

Simone Maynard



Apr 22, 2009 at 12:17 PM
Add a property on your codebehind page and use it on your canvas (aspx) page.

Assume your public property is PhotoId, you can use it as follows;

<fb:photo pid="<%= PhotoId%>" idname="photo1"/>