Pictures not displaying

Discussion in 'ASP General' started by qqqq, Jan 19, 2005.

  1. qqqq

    qqqq Guest

    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
     
    qqqq, Jan 19, 2005
    #1
    1. Advertising

  2. qqqq

    McKirahan Guest

    "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.
     
    McKirahan, Jan 19, 2005
    #2
    1. Advertising

  3. qqqq

    qqqq Guest

    thannks thats dorted it

    "McKirahan" <> wrote in message
    news:...
    > "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.
    >
    >
     
    qqqq, Jan 19, 2005
    #3
  4. qqqq

    Evertjan. Guest

    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)
     
    Evertjan., Jan 19, 2005
    #4
  5. qqqq

    qqqq Guest

    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)
    >
     
    qqqq, Jan 22, 2005
    #5
    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.onet.pl
    Replies:
    1
    Views:
    308
  2. Martin Raychev
    Replies:
    1
    Views:
    290
    Alvin Bruney [MVP]
    Mar 2, 2004
  3. Oli Waters
    Replies:
    3
    Views:
    103
    Andy Baxter
    Jan 12, 2004
  4. Oli Waters
    Replies:
    2
    Views:
    263
    Andy Baxter
    Jan 12, 2004
  5. David. E. Goble

    displaying a list of pictures?

    David. E. Goble, May 21, 2005, in forum: Javascript
    Replies:
    3
    Views:
    86
    Random
    May 23, 2005
Loading...

Share This Page