Results 1 to 5 of 5

Thread: Image won't display on client [RESOLVED]

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2004
    Posts
    17

    Resolved Image won't display on client [RESOLVED]

    Hi,

    I am very new to ASP and have hit a little bit of trouble on what must be a very simple problem although i have been unable to find an answer yet.

    I have a very simple web page made with vs which has some text on it and a single image.

    the website exists in the folder C:\Inetpub\wwwroot\MyWebPage and inside there exists a folder called images that contains 1 image, image1.bmp

    i have placed an image control on the web page and set its imageurl property by browsing to the image1.bmp file. If i run the projuect on the development machine it all displays fine. however if i use another machine on the network by running ie and putting http://machinename/mywebpage in the address bar it will display all the text fine but just gives me an image place holder for the image.

    Thanks for any pointers and comments
    Last edited by CptCarter; Sep 2nd, 2005 at 04:44 AM.

  2. #2
    Hyperactive Member
    Join Date
    Oct 2002
    Location
    The Twilight Zone
    Posts
    295

    Re: Image won't display on client

    What URL type are you using?

    Try using an Absolute path: i.e http://machinename/mywebpage/images/image.bmp

  3. #3
    Addicted Member
    Join Date
    Aug 2004
    Location
    Cape Town, South Africa
    Posts
    149

    Re: Image won't display on client

    the path should read something like:

    (images/image1.bmp)

    rather than

    (C:\Inetpub\wwwroot\MyWebPage\images\image1.bmp)

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Dec 2004
    Posts
    17

    Re: Image won't display on client

    Hi,

    I have tried several different ways of typing the image location in now and i can still only see them on the development machine. If i browse to the imageurl from the elipses button in the properties windows the path that is put there reads file:///C:\Inetpub\wwwroot\MyWebPage\Images\image1.bmp but another machine on the network only sees the placeholder with a red cross.

    Could it be anything to do with permissions within IIS or anything like that?

    There are no firewalls running on the client machine that could be blocking images (i have seen this happen on other websites) so i am really at a loss as to why this most simple of things won't work.

    Thanks

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Dec 2004
    Posts
    17

    Re: Image won't display on client

    Almost embarrising to admit but i have solved this problem. It turns out that i was mispelling the file name when typing in the relative path.

Posting Permissions

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



Click Here to Expand Forum to Full Width