Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > IMG tag not displaying image

Reply
Thread Tools

IMG tag not displaying image

 
 
David C
Guest
Posts: n/a
 
      10-29-2004
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


 
Reply With Quote
 
 
 
 
Jeff Dillon
Guest
Posts: n/a
 
      10-29-2004
Check to make sure both servers have the virtual directories configured the
same

Jeff

"David C" <(E-Mail Removed)> wrote in message
news:utz#(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
 
David
Guest
Posts: n/a
 
      10-29-2004
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!
 
Reply With Quote
 
Jeff Dillon
Guest
Posts: n/a
 
      10-29-2004
Hard code the src attribute so it works..and look for the differences.

Jeff
"David" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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!



 
Reply With Quote
 
David
Guest
Posts: n/a
 
      10-29-2004
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!
 
Reply With Quote
 
Jeff Dillon
Guest
Posts: n/a
 
      10-29-2004
No..src=test.jpg

then

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

try a few things

"David" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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!



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
putting img above/bellow img ? Jopek HTML 7 04-26-2009 10:26 PM
how to replace this like <img width=100 ...> with <img width="100" ...> zhanye815@gmail.com Perl Misc 7 06-21-2006 11:16 PM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
Problem: <img></img> Philipp Lenssen XML 15 07-03-2005 09:23 AM
how to download img from html img tag news.austin.rr.com ASP .Net 2 04-27-2005 06:25 PM



Advertisments