Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2003
    Location
    Lowlands
    Posts
    53

    Unanswered: Get the Picture?

    Hi all,

    I've got a asp.net-site and in the site I've got some pictures. The problem is when I open my site on my local machine everything works fine, but when I open it from another machine I don't see any pictures.

    I have checked everything and I don't get the PICTURE...

    any suggestions?
    If Perfection really is an Illusion. Then I want to get as close as possible to that Illusion.

  2. #2
    Join Date
    Dec 2003
    Location
    Lowlands
    Posts
    53

    Re: Get the Picture?

    Have I discovered a problem that has never shown its face to humanity?
    If Perfection really is an Illusion. Then I want to get as close as possible to that Illusion.

  3. #3
    Join Date
    Nov 2003
    Posts
    76
    If you see only red X instead of picture make sure the browser is set to show pictures.
    Other than that I have no idea except your path to pictures might have no rights for the client.

  4. #4
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    I suspect your problem is that the references to your images point to where they are on your local machine that does not match where they are on your server.

    Right click on one of the image placeholders and have a look at the properties for it and you will probably find your error.

    Also check the html that is being generated and check the source attribute of the image, then make sure the image exists in that location...

  5. #5
    Join Date
    Dec 2003
    Location
    Lowlands
    Posts
    53
    I really am loosing it now, when I click with the right button on the placeholder and choose properties. I get the next path

    file:///inetpub/wwwroot/myFolder/myImages/image1.jpg
    The pictures are in this file.

    When I close the properties-popup I get the message that IE has encountered a problem.

    This is the first time I ever get a problem with asp, I don't have any idea what's wrong...
    If Perfection really is an Illusion. Then I want to get as close as possible to that Illusion.

  6. #6
    Join Date
    Jul 2003
    Location
    SoCal
    Posts
    721
    Sounds like you're using a tool to develop your application. You need to change the path to your images to be either a relative or absolute path on your webserver. Right now they are absolute to your file system.

    Note how your path to the image starts with "file://". This tells the browser to find the image on the local computer. Since not everyone has the same folders and files on their personal computers, you need to change the path to be one that all computers can reference to retrieve the image from YOUR computer.

    A relative path (in the source of your HTML pointing to the image) would look like:

    <img src="/myfolder/myimages/image1.jpg">

    An absolute path would look like:

    <img src="http://www.mydomain.com/myfolder/myimages/image1.jpg">

    Use one of these two methods to reference images, links, etc within your HTML files.
    That which does not kill me postpones the inevitable.

  7. #7
    Join Date
    Dec 2003
    Location
    Lowlands
    Posts
    53

    Thumbs up

    Seppuku,

    I read your reply and I think I see the light, what you say is very possible. I won't be able to check it until tomorrow, but I think you got it.

    Thanx alot.
    If Perfection really is an Illusion. Then I want to get as close as possible to that Illusion.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •