Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Pictures not displaying

Reply
Thread Tools

Pictures not displaying

 
 
qqqq
Guest
Posts: n/a
 
      01-19-2005
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


 
Reply With Quote
 
 
 
 
McKirahan
Guest
Posts: n/a
 
      01-19-2005
"qqqq" <> wrote in message
news:elCOKSg$...
> 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.


 
Reply With Quote
 
 
 
 
qqqq
Guest
Posts: n/a
 
      01-19-2005
thannks thats dorted it

"McKirahan" <> wrote in message
news:38CdnXfX4-6WoHPcRVn-...
> "qqqq" <> wrote in message
> news:elCOKSg$...
> > 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.
>
>



 
Reply With Quote
 
Evertjan.
Guest
Posts: n/a
 
      01-19-2005
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"
src="http://yourWebDomain.com/HousePics/<%=rsData("id")%>.jpg"
>


--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

 
Reply With Quote
 
qqqq
Guest
Posts: n/a
 
      01-22-2005
Thanks Evertjan

THats got working as I wanted.


"Evertjan." <> wrote in message
news:Xns95E3AA40ED81Feejj99@194.109.133.29...
> 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"
> src="http://yourWebDomain.com/HousePics/<%=rsData("id")%>.jpg"
> >

>
> --
> Evertjan.
> The Netherlands.
> (Replace all crosses with dots in my emailaddress)
>



 
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
Displaying pictures on a website INFOMINDSOLUTIONS Digital Photography 5 06-17-2006 03:53 AM
Displaying pictures on a website INFOMINDSOLUTIONS Digital Photography 1 05-28-2006 05:43 PM
My emails has an "X" instead of displaying pictures. lbbss Computer Support 5 04-03-2006 04:19 PM
displaying pictures in Internet Explorer notatechie Computer Support 11 10-01-2005 07:59 PM
pictures not displaying in ie Unk Computer Support 3 07-23-2003 03:05 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57