Images not visible

  • Thread starter Thread starter Rohit
  • Start date Start date
R

Rohit

I am a newbie. I just started creating my web-site and added few
images in the APP_DATA folder. The images are visible in the design
time but when I run my web-site and Internet Explorer opens, only
small image boxes are displayed with red cross mark in between. Why
the images are not visible?
 
Rohit said:
I am a newbie. I just started creating my web-site and added few
images in the APP_DATA folder. The images are visible in the design
time but when I run my web-site and Internet Explorer opens, only
small image boxes are displayed with red cross mark in between. Why
the images are not visible?

The most likely reason is that the image paths are not set correctly.

If you right click on the image in Internet Explorer and click
"Properties", see that the "Address (URL)" says. It should be something
like : "http://localhost/APP_DATA/test.jpg" - post it back here and I'll
comment further :-)

Cheers,

RB.
 
First, you should create a new folder for your images and not put them in
the Data Folder. As for the little crosses, it probably means your path to
the images does not exist.

When the page has rendered in the browser, right clik overthe image an look
at the URL, does this map to the fiile you expect it to ?
 
AFAIK what comes from the App_Data folder won't be served.

It would be best to place downloadable and non downlable files in distinct
folders so that you can always have the appropriate permissions on those
folders...
 
I am a newbie. I just started creating my web-site and added few
images in the APP_DATA folder. The images are visible in the design
time but when I run my web-site and Internet Explorer opens, only
small image boxes are displayed with red cross mark in between. Why
the images are not visible?

Because you've put them in the App_Data folder...

Put them in a "normal" folder, not a "special" folder...
 
Back
Top