HOW TO DISPLAY IMAGES IN ASP.NET?

Pooja Malohtra

Total Post:47

Points:331
Posted by  Pooja Malohtra
 3123  View(s)
Ratings:
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
  1. Amit Singh

    Post:103

    Points:721
    Re: How to display images in ASP.NET?

    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" />

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!