• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 167
  • Last Modified:

Display Images on Web Form specifying File Path

I need to display an image that is stored in a folder on the webserver that is NOT part of the root of the website, i.e.  D:\projects\project_number\photos\   and webserver is  D:\inetpub\wwwroot\website     etc.
The Image.ImageURL must have a relative path.    The images are related to a project and stored in the project file structure, so I am locating the image to load through project varialbe, i.e. project_number.  Once I generate the path to the photo, I cannot display the photo due to the relative path needed for ImageURL.  

What are my options to displaying the photo?   I want the code to open a new window and display the image.  

1 Solution
You need to place them on a path on your webserver-structure. All the possibilities:
ASP.NET Web Site Paths

Featured Post

Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now