|
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:Original Thread:
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/
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." <r_ahimsa_m@poczta.onet.pl> wrote in message news:enjg1296nob856ajdd52ffbnclsom1lkfa@4ax.com... > 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
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. |
|||||||
