Link to home
Start Free TrialLog in
Avatar of Evert Jor
Evert JorFlag for Norway

asked on

Error in ASP script for fetching image file

I'm trying to display a logo situated on my server, but no... I cant figure out what the scipt error is:

Response.write"   <img alt="""" height=""85"" src=""file:///C:/inetpub/wwwroot/vet/barcode/logo5paws.jpg"" width=""39"" />;</td>"
Avatar of HainKurt
HainKurt
Flag of Canada image

use simple code!

Response.write "<img alt='' height='85' src='file:///C:/inetpub/wwwroot/vet/barcode/logo5paws.jpg' width='39' />;</td>"

Open in new window

by the way it has </td> at the end, assuming this is just a code fragments and it is ok...
if not, remove that one...

also it has ";" inside...

after all fix

Response.write "<img alt='' height='85' src='file:///C:/inetpub/wwwroot/vet/barcode/logo5paws.jpg' width='39' />"

Open in new window


ASKER CERTIFIED SOLUTION
Avatar of zc2
zc2
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Instead of using the full path which may  not work, use a relative (to web root) path like below assuming the web root is C:/inetpub/wwwroot/ meaning your index.asp is at C:/inetpub/wwwroot/ndex.asp

Response.write "<img alt='' height='85' src='/vet/barcode/logo5paws.jpg' width='39' />;</td>"

Open in new window


If the webroot is the vet folder then
Response.write "<img alt='' height='85' src='/barcode/logo5paws.jpg' width='39' />;</td>"

Open in new window