Pictures not displaying

Q

qqqq

Hi

I have a web page that displays properties for sale.

The web page links to a database.

The page shows information in the database and the path to the picture.

The code is


<p><img border="0" src="file:///D:/HousePics/<%response.write
rsData("id")%>.jpg" width="350" height="262"></p>

the rsData("id")% gives the name of the picture file and appends .jpg to it.

When I browse the page on the local machine the page displays ok and the
graphics show up ok.

When I browse to the page at work the grpahics don't show.

Permissions on the folder 'everyone full control', web sharing is enable
for the site

Thanks

Geoff
 
M

McKirahan

qqqq said:
Hi

I have a web page that displays properties for sale.

The web page links to a database.

The page shows information in the database and the path to the picture.

The code is


<p><img border="0" src="file:///D:/HousePics/<%response.write
rsData("id")%>.jpg" width="350" height="262"></p>

the rsData("id")% gives the name of the picture file and appends .jpg to it.

When I browse the page on the local machine the page displays ok and the
graphics show up ok.

When I browse to the page at work the grpahics don't show.

Permissions on the folder 'everyone full control', web sharing is enable
for the site

Thanks

Geoff

file:///D:/HousePics/ is a localpath.

Place the pictures in a folder named "HousePics" directly under the folder
that contains the page then change the "src=" to just "HousePics/".
Alternatively, you may be able to assign a virtual folder to reference the
current location of the pictures.
 
Q

qqqq

thannks thats dorted it

McKirahan said:
file:///D:/HousePics/ is a localpath.

Place the pictures in a folder named "HousePics" directly under the folder
that contains the page then change the "src=" to just "HousePics/".
Alternatively, you may be able to assign a virtual folder to reference the
current location of the pictures.
 
E

Evertjan.

qqqq wrote on 19 jan 2005 in microsoft.public.inetserver.asp.general:
<p><img border="0" src="file:///D:/HousePics/<%response.write
rsData("id")%>.jpg" width="350" height="262"></p>

the rsData("id")% gives the name of the picture file and appends .jpg
to it.

When I browse the page on the local machine the page displays ok and
the graphics show up ok.

When I browse to the page at work the grpahics don't show.

Do you have the same file on the pc on your work in it's http://localhost/?

AND

Do you have the same pictures on the pc on your work in a directory with
the same name [file:///D:/HousePics/]?

If not, you should use

<img border="0"
 
Q

qqqq

Thanks Evertjan

THats got working as I wanted.


Evertjan. said:
qqqq wrote on 19 jan 2005 in microsoft.public.inetserver.asp.general:
<p><img border="0" src="file:///D:/HousePics/<%response.write
rsData("id")%>.jpg" width="350" height="262"></p>

the rsData("id")% gives the name of the picture file and appends .jpg
to it.

When I browse the page on the local machine the page displays ok and
the graphics show up ok.

When I browse to the page at work the grpahics don't show.

Do you have the same file on the pc on your work in it's http://localhost/?

AND

Do you have the same pictures on the pc on your work in a directory with
the same name [file:///D:/HousePics/]?

If not, you should use

<img border="0"
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top