M
mc
I'm writing a gallery app with an online update facility, I would like
to be able to create a custom Thumbnail control, which will display the
thumbnail and an expandable panel with the meta data which the user can
subsequently update.
I've created the control and added an Image.
I also have a property for the "PhotoId", which when queried in the
database will return the image location and the meta data.
When in the control creation "Life cycle" can I use the property value,
if someone is using the control in a data bound repeater as such: -
<repeater>
<itemTemplate>
<mchotoThumb runat="server" ID="photoThumbnail" PhotoId='<%#
Eval("PhotoID")%>'/>
</itemTemplate>
</repeater>
I created an function which pulls the info from the db and updates the
image location and meta data contents. when I call this from the Image
DataBinding event handler, the property has the correct value in it.
This works, but it feels like it's in the wrong place. Where should I be
calling the load data function from?
Any Thoughts?
Regards
MC
to be able to create a custom Thumbnail control, which will display the
thumbnail and an expandable panel with the meta data which the user can
subsequently update.
I've created the control and added an Image.
I also have a property for the "PhotoId", which when queried in the
database will return the image location and the meta data.
When in the control creation "Life cycle" can I use the property value,
if someone is using the control in a data bound repeater as such: -
<repeater>
<itemTemplate>
<mchotoThumb runat="server" ID="photoThumbnail" PhotoId='<%#
Eval("PhotoID")%>'/>
</itemTemplate>
</repeater>
I created an function which pulls the info from the db and updates the
image location and meta data contents. when I call this from the Image
DataBinding event handler, the property has the correct value in it.
This works, but it feels like it's in the wrong place. Where should I be
calling the load data function from?
Any Thoughts?
Regards
MC