Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!

Reply to ".NET 2.0: <img...> not displayed" on asp.net:

Your Name  
Email Address
(optional)

NOTE: We will never share your email address with a third party, but your email address
may be displayed publicly on our site next to your post, allowing people see your email
address and contact you. If you do not want your email displayed publicly or seen by other
people, leave this field blank.
Subject  
Message  
Spam Protection
Enter the code into the field below. If you can't read the code, reload the page.

NOTE: DevelopmentNow is an open resource for all techies. Please make your posts relevant
and helpful. We monitor all posts.

Users who repeatedly submit profane or garbage posts may be blocked, banned, and/or
have their ISPs notified for abuse.


Original Thread:

Re: .NET 2.0: not displayed Darren Kopp
3/15/2006 9:59:58 AM
why do you have an image in the app_data folder? I don't know if you
can browse to the app_data folder. if you have the image as an
embedded resource, you will load the image from the assembly using the
full name of the resource. Here's a link on how to use embedded
resources in asp.net

http://weblogs.asp.net/asmith/articles/25465.aspx

HTH,
Darren Kopp
http://blog.secudocs.com/
Re: .NET 2.0: not displayed Winista
3/15/2006 12:44:40 PM
APP_Data folder is sacred folder which framework does not allow direct
access to. You need to move the image to some other place.

--
Netomatix
http://www.netomatix.com
[quoted text, click to view]

.NET 2.0: not displayed R.A.M.
3/15/2006 6:40:17 PM
Hello,
(sorry for my English...)
Could you help me please with one asp.net problem? I am beginner...

I am writting simple Demo .NET application. On start page I have:

<h1>Demo .NET</h1>
<br />
<p style="vertical-align: middle;">
<img src="App_Data/DotNet_360x280.jpeg" alt="Microsoft .NET
version 2.0" width="360" height="280"
onclick="location.href='Login.aspx'"/>
<br />
...
</p>

I don't understand why when I run the application image
DotNet_360x280.jpeg is not shown (frame only).
When I have written URL of the picture
(.../App_Data/DotNet_360x280.jpeg) in the browser I receive HTTP error
403 - Forbidden.
JPEG file exists in App_Data folder.
How to solve the problem? The HTML text is displayed correctly.

Thank you very much for your answers.
DevelopmentNow Blog