IMG tag not displaying image

Discussion in 'ASP General' started by David C, Oct 29, 2004.

  1. David C

    David C Guest

    I have ASP (classic) code that writes out a table and sets the <img....> tag
    with a virtual directory source, e.g. src='/test/imghold/xyz.png', and the
    images do not appear on the IE page. The code is from a production site
    that works fine. We just duplicated the web site to one named test and now
    the images do not display. The IMG item is in a TD element of a table.
    Also, I looked at the "view source" of the page and it shows the <IMG
    src='/test/imghold/xyz.png'...> just fine. I even tried it with different
    images and none of them show up. Can anyone help? Thanks.

    David
    David C, Oct 29, 2004
    #1
    1. Advertising

  2. David C

    Jeff Dillon Guest

    Check to make sure both servers have the virtual directories configured the
    same

    Jeff

    "David C" <> wrote in message
    news:utz#...
    > I have ASP (classic) code that writes out a table and sets the <img....>

    tag
    > with a virtual directory source, e.g. src='/test/imghold/xyz.png', and the
    > images do not appear on the IE page. The code is from a production site
    > that works fine. We just duplicated the web site to one named test and

    now
    > the images do not display. The IMG item is in a TD element of a table.
    > Also, I looked at the "view source" of the page and it shows the <IMG
    > src='/test/imghold/xyz.png'...> just fine. I even tried it with different
    > images and none of them show up. Can anyone help? Thanks.
    >
    > David
    >
    >
    Jeff Dillon, Oct 29, 2004
    #2
    1. Advertising

  3. David C

    David Guest

    They are actually on the same physical server, if that helps. Also, I
    did a Server.MapPath("/test/imghold/") on both (other was
    /imaging/imghold/) and they both returned the same physical directory.
    Both web sites have the same virtual directory named /imghold and both
    point to the same physical directory. Another process that physically
    creates the image and saves it to that directory prior to the html
    display of that image uses the same virtual path.

    David



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    David, Oct 29, 2004
    #3
  4. David C

    Jeff Dillon Guest

    Hard code the src attribute so it works..and look for the differences.

    Jeff
    "David" <> wrote in message
    news:...
    > They are actually on the same physical server, if that helps. Also, I
    > did a Server.MapPath("/test/imghold/") on both (other was
    > /imaging/imghold/) and they both returned the same physical directory.
    > Both web sites have the same virtual directory named /imghold and both
    > point to the same physical directory. Another process that physically
    > creates the image and saves it to that directory prior to the html
    > display of that image uses the same virtual path.
    >
    > David
    >
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!
    Jeff Dillon, Oct 29, 2004
    #4
  5. David C

    David Guest

    Do you mean hard coded with PHYSICAL path? e.g. D:\imghold\xyz.png ?

    David



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    David, Oct 29, 2004
    #5
  6. David C

    Jeff Dillon Guest

    No..src=test.jpg

    then

    src=/test/test.jpg
    src=test/test.jpg

    try a few things

    "David" <> wrote in message
    news:...
    > Do you mean hard coded with PHYSICAL path? e.g. D:\imghold\xyz.png ?
    >
    > David
    >
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!
    Jeff Dillon, Oct 29, 2004
    #6
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. news.austin.rr.com

    how to download img from html img tag

    news.austin.rr.com, Apr 27, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    500
    Steve C. Orr [MVP, MCSD]
    Apr 27, 2005
  2. shruds
    Replies:
    1
    Views:
    746
    John C. Bollinger
    Jan 27, 2006
  3. Philipp Lenssen

    Problem: <img></img>

    Philipp Lenssen, Jun 27, 2005, in forum: XML
    Replies:
    15
    Views:
    740
    David Håsäther
    Jul 3, 2005
  4. Jopek
    Replies:
    7
    Views:
    385
    dorayme
    Apr 26, 2009
  5. Replies:
    7
    Views:
    167
    Tad McClellan
    Jun 22, 2006
Loading...

Share This Page