473,473 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Images not visible

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?

Sep 18 '07 #1
5 1954
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 ?


"Rohit" <rp*********@gmail.comwrote in message
news:11*********************@22g2000hsm.googlegrou ps.com...
>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?

Sep 18 '07 #2
Make sure you are using virtual path to the images rather than physical
path.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Just Me" <news.microsoft.comwrote in message
news:uY****************@TK2MSFTNGP02.phx.gbl...
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 ?


"Rohit" <rp*********@gmail.comwrote in message
news:11*********************@22g2000hsm.googlegrou ps.com...
>>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?


Sep 18 '07 #3
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...

---
Patrice

"Rohit" <rp*********@gmail.coma écrit dans le message de news:
11*********************@22g2000hsm.googlegroups.co m...
>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?

Sep 18 '07 #4
"Rohit" <rp*********@gmail.comwrote in message
news:11*********************@22g2000hsm.googlegrou ps.com...
>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...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 18 '07 #5
RB
Rohit wrote:
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.
Sep 18 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Trent | last post by:
Hey All, I am new to javascript and currently coding a site with scripts that are beyond my level of understanding. The problematic page has thumbnail images that can be clicked on to zoom in....
13
by: moondaddy | last post by:
Happy Holidays All! I want to load a datagrid with images and text (Image, text, image, text, etc...). The data for this datagrid will be coming from sql server and the images are stored as files...
3
by: Joe Cox | last post by:
I am having a problem with style properties for dynamic images in Mac OS X Safari. By dymanic images, I mean images allocated with the javascript 'new Image()' call. With static images (created...
2
by: BengtPelle | last post by:
I have a page with two Datalists containing X number of ImageButtons. When the user clicks on an image in Datalist1 I need to copy the image to "Obverseimg" when the user clicks an image in...
76
by: rcoco | last post by:
Hi all, I'm facing this problem I have images on my website but when I Deploye the website on server the Images are not there I only get the X sign. How can I go about this. Thanks
1
by: blueheelers | last post by:
I have been researching for several hours on the best way to display images in continous forms in Access 2003. For example, I want to display employee name, email, phone, and picture for each...
7
by: Geoff Cox | last post by:
Hello, I have the code below in which the play1.gif image is visible and when the associated sound has been played the the 2 images same1.gif and different1.gif appear. Once one of these has...
5
by: tshad | last post by:
I am using VS 2008 and in my aspx page my images are showing with squigly lines (technical term) and saying that image not found. But when it runs it finds them fine. The images are defined: ...
1
by: tshad | last post by:
In VS 2008, I have in my footer a button, link and 2 images. But they are not displaying in the vertical middle of the row, even though I have it set that way: <asp:Button ID="AddQuestion"...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.