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,
"thumbnail", "../gallerysubmissions/{0}" %>"
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
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,
"thumbnail", "../gallerysubmissions/{0}" %>"
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