Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
image buttons in Datalist control
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Larry, post: 488063"] 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 [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
image buttons in Datalist control
Top