Hi Gav,
Based on my understanding, you want to specify a unique id for your image
in each row in Repeater control.
Because your <img> is a client side html tag, you can follow Lintie's
suggestion of using legacy asp syntax.
What I want to inform you is that, for Asp.net server side control, you can
only do databinding for the property, like this:
<asp: tagname property="<%#%>" ....>
But, for the ID property, you can not do databinding. So <asp: tagname
ID="<%#%>" ....> will generate parse error on web form.
Also, for Asp.net Web controls(Especially for Repeater controls) on Web
Form, we use the naming space for the ID. It is similiar as the NameSpace
for the control ID(To keep the ID unique on the web form). So multi-rows in
the Repeater control may have the same ID.
For more information, please refer to:
"Web Forms Control Identification"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vbconwebformscontrolidentification.asp
"Referencing Controls in Web Forms Pages"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vbtskreferencingcontrolsinwebformspages.asp
Anyway, for your issue, Lintie's suggestion should work for you.
Please apply my suggestion above and let me know if it helps resolve your
problem.
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.