.NET 2.0: <img...> not displayed

R

R.A.M.

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.
/RAM
 
W

Winista

APP_Data folder is sacred folder which framework does not allow direct
access to. You need to move the image to some other place.
 

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,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top