Posted on 2009-05-01
Last Modified: 2013-11-26
In my attached code I KNOW it's puilling data because if I output like this I get data
<asp:Label ID="lblAddress" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "LineTwo") %>'></asp:Label>

That returns sp1.jpg

But I can't seem to get THIS working...  
<asp:Image ID="Image1" runat="server" Width="628px"  ImageUrl='http://www.mydomain/cms/Images/<%# DataBinder.Eval(Container.DataItem, "LineTwo") %>' />

if I type 'http://www.mydomain/cms/Images/sp1.jpg in the browser it returns the image

A little help?
Question by:lrbrister
    LVL 17

    Expert Comment

    You have Width="628px" assigned but have you tried adding Height attribute?
    LVL 17

    Expert Comment

    Also, when you preview the page, right-click the page and go to view source. Then try to find the img tag and make sure the syntax is correct. Post it here if possible.
    LVL 17

    Expert Comment

    Sorry for so many posts, but you can also try changing
    <asp:Image ID="Image1" runat="server" Width="628px"  ImageUrl='http://www.mydomain/cms/Images/<%# DataBinder.Eval(Container.DataItem, "LineTwo") %>' />


    <asp:Image ID="Image1" runat="server" Width="628px"  ImageUrl='/cms/Images/<%# DataBinder.Eval(Container.DataItem, "LineTwo") %>' />

    Author Comment

      I have to reference the other domain.  This is coming from a image provider
    LVL 4

    Expert Comment

    try this line

    NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "LineTwo") , "http://www.mydomain/cms/Images/{0}")%>'


    Accepted Solution

    I found my own workaround.  Placed this in a Telerik RadRotator and called the actual path.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now