Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Images not visible

Reply
Thread Tools

Images not visible

 
 
Rohit
Guest
Posts: n/a
 
      09-18-2007
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?

 
Reply With Quote
 
 
 
 
RB
Guest
Posts: n/a
 
      09-18-2007
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.
 
Reply With Quote
 
 
 
 
Just Me
Guest
Posts: n/a
 
      09-18-2007
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" <> wrote in message
news: 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?
>



 
Reply With Quote
 
Eliyahu Goldin
Guest
Posts: n/a
 
      09-18-2007
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.com> wrote in message
news:uYGkLig%...
> 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" <> wrote in message
> news: 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?
>>

>
>



 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      09-18-2007
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" <> a écrit dans le message de news:
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?
>



 
Reply With Quote
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      09-18-2007
"Rohit" <> wrote in message
news: 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Input button visible when not visible tshad ASP .Net 1 10-31-2009 10:53 PM
Hide textbox / Make textbox not visible (NOT USING visible property) Jurjen de Groot ASP .Net Web Controls 0 05-19-2008 09:50 AM
How to make a hyperlink Visible or not visible in DataList Patrick Olurotimi Ige ASP .Net 7 06-15-2005 12:01 PM
Sections visible and not visible tshad ASP .Net 4 01-31-2005 09:30 PM
button visible/not visible tshad ASP .Net 6 10-28-2004 10:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57