|
-
Sep 1st, 2005, 10:52 AM
#1
Thread Starter
Junior Member
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.
-
Sep 1st, 2005, 12:44 PM
#2
Hyperactive Member
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
-
Sep 1st, 2005, 04:12 PM
#3
Addicted Member
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)
-
Sep 2nd, 2005, 03:12 AM
#4
Thread Starter
Junior Member
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
-
Sep 2nd, 2005, 04:43 AM
#5
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|