Search This Blog

Saturday, December 13, 2008

ASP.NET - Displaying images on ASP.NET Web pages - Problem of Image not appearing

A common problem most beginners in ASP.NET face is when they try to display images on asp.net pages, you get an image not found error(the ubiquitous red check box). This error is caused because you have placed the image in app_data folder and trying to display it. 

Solution:
Images present in app_Data will not be served on a web page. The app_Data folder has special significance. The solution to this problem is to create a separate folder and give it some intuitive name like Images, place the images you would like to display in the folder and link it on your web page.

No comments:

 
ss_blog_claim=610c329374fdaea5e07dfca1c6dffb2d