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!
all groups > asp.net > march 2006 >

asp.net : .NET 2.0: <img...> 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/
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]

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.
AddThis Social Bookmark Button