I have an 'image' control on my page. The imageUrl of this control is set to: ~/App_Data/images/IMG_0064.JPG
In design view it displays the image but when I run the page, it does not - I only see the little image. Right clicking on this image to Download As... give a server problem. I am missing something sooo basic. Thanks for the help.
This may be because it is in the App_Data folder. It would be best to move it out of there. As I recall, files in this folder are given a special level of protection from being accessed by anything other than your code (For example, a browser would not
have access). Try move moving it out of there and see if that clears it up.
chaski
Member
1 Points
5 Posts
display images
Aug 10, 2012 07:36 PM|LINK
I have an 'image' control on my page. The imageUrl of this control is set to: ~/App_Data/images/IMG_0064.JPG
In design view it displays the image but when I run the page, it does not - I only see the little image. Right clicking on this image to Download As... give a server problem. I am missing something sooo basic. Thanks for the help.
MattsDotNetU...
Contributor
3178 Points
515 Posts
Re: display images
Aug 10, 2012 08:12 PM|LINK
This may be because it is in the App_Data folder. It would be best to move it out of there. As I recall, files in this folder are given a special level of protection from being accessed by anything other than your code (For example, a browser would not have access). Try move moving it out of there and see if that clears it up.