Last post Dec 19, 2008 09:42 PM by Hubble
Dec 19, 2008 06:28 PM|Benton|LINK
My application resides in c:\inetpub\wwwroot\images and from this application I want to serve pictures located on another folder, i.e. c:\pictures. How can I do this?
imgPicture.ImageUrl = ???
hlkHyperlink.NavigateUrl = ???
Thanks in advance for your help.
Dec 19, 2008 09:42 PM|Hubble|LINK
You have several options:
a) Create a virtual directory (ie:pictures) in the IIS inside your application so it points to c:\picture, and then your links would be like this "~/pictures/yourpicture.ext
b) Create a page or similar mechanism that recieves a name of an image and then you serve it using the function Response.TransmitFie(filename)
If it was possible I would use a)
Hope this helps