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

Total Post:47

Points:331
Posted on    January-10-2011 9:29 AM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 2864  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?
Thanks


Amit Singh

Total Post:103

Points:721
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.
as

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

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

Follow MindStick