Images not visible

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?
 
R

RB

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.
 
J

Just Me

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 ?
 
P

Patrice

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...
 
M

Mark Rae [MVP]

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top