473,388 Members | 1,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

image buttons in Datalist control

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
Nov 19 '05 #1
0 1027

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John Dunlop | last post by:
(Note crosspost and follow-ups to ciwah.) Nicolas Keller wrote in thread "Differences in form handling btw Mozilla and IE?": > The problem: I'm using a form that submit's (POST) its data via...
2
by: Stan | last post by:
I cannot make the link buttons fire ItemCommand from repeater control. Here is the code: <asp:repeater id=rptLetters runat="server"> <itemtemplate> <asp:linkbutton id="lnkLetter"...
10
by: David W. Simmonds | last post by:
I have a DataList control that has an Image control in the ItemTemplate. I would like to resize the image that goes into that control. I have a series of jpg files that are full size, full...
2
by: Vitalii | last post by:
Hi I am using Image control with DataList control but have a problem. Here is the code I am using <asp:Image ImageURL='<%# DataBinder.Eval(Container.DataItem, "imagefilename" ) %>'...
2
by: Jim Heavey | last post by:
I have 2 datalist each has 3 buttons in the datalist. One Datalist, only 2 of the three buttons work in the other one is dead (no postback, not nothing). I have another Datalist and on this...
4
by: phil2phil | last post by:
Hi, Right now I have a datalist, that renders the following html: <tr> <td class="daycss" align="Left" valign="Top" style="background-color:#EEEEEE;height:20px;"> <div...
2
by: GD | last post by:
I'm trying to bind (display) a SQL column to an <asp:image control. I was under the impression that this could be achieved my pointing the ImageURL to the databound column but it doesn't seem to...
2
by: David C | last post by:
I have an asp:Image control that I want to have it's src url to change using OnClientClick of a set of images in a DataList. All works fine, except the single Image control is not displaying the...
8
by: GaryDean | last post by:
I have a Wizard page and need to affect the next and previous buttons from my code-behind. I've googled around and found two solutions, and neither appear to work. I can access the SideBarList...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.