If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Get the Picture?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-04-04, 03:12
StylizIT StylizIT is offline
Registered User
 
Join Date: Dec 2003
Location: Lowlands
Posts: 53
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.
Reply With Quote
  #2 (permalink)  
Old 02-04-04, 09:02
StylizIT StylizIT is offline
Registered User
 
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.
Reply With Quote
  #3 (permalink)  
Old 02-04-04, 09:07
sivaroo sivaroo is offline
Registered User
 
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.
Reply With Quote
  #4 (permalink)  
Old 02-04-04, 18:07
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
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...
Reply With Quote
  #5 (permalink)  
Old 02-05-04, 02:50
StylizIT StylizIT is offline
Registered User
 
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.
Reply With Quote
  #6 (permalink)  
Old 02-05-04, 16:32
Seppuku Seppuku is offline
Useless...
 
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.
Reply With Quote
  #7 (permalink)  
Old 02-06-04, 03:02
StylizIT StylizIT is offline
Registered User
 
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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On