Home > DeveloperSection > Forums > How to display images in ASP.NET?
Pooja Malohtra
Pooja Malohtra

Total Post:47

Posted on    January-10-2011 9:29 AM

 ASP.Net ASP.Net 

 1 Reply(s)
 3098  View(s)
Rate this:
I am trying to show image in ASP.NET page, I am using Image Control and storing image in App_Data folder.
Please reply with sample code , how to show image in ASP.NET?

Amit Singh

Total Post:103

Posted on    January-10-2011 9:49 AM

this is the special folder and this is the secure folder for data. so we cannot access the image in image control.
we can access the image from the image folder.

<asp:Image ID="Image1" runat="server" ImageUrl="~/Image/Desert.jpg" />

Don't want to miss updates? Please click the below button!

Follow MindStick