image buttons in Datalist control

L

Larry

I have a dataset with filenames for the image buttons for my datalist. The
image files as in a directory "GallerySubmissions". The datalist is part of
a user control.

What I can not get to work is the databinding for the imageURL attribute for
the items in the datalist.

if I try this (This is based on one of those quickstarts):

ImageUrl=<%DataBinder.Eval(Container.DataItem, "thumbnail",
"../gallerysubmissions/{0}"%>

I get this:

src="../UserControls/<%DataBinder.Eval(Container.DataItem,
&quot;thumbnail&quot;, &quot;../gallerysubmissions/{0}&quot;) %>"

What am I doing wrong? Why does this control keep generating this
"usercontrols" reference (thats the directory where the usercontrol
resides), instead of the subdirectory I'm trying to get it to generate?

-Larry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top