Link to home
Start Free TrialLog in
Avatar of laskydiver
laskydiver

asked on

How to display image in image control from folder located outside of application

I have a project using ASP.net and Visual Studio. I want to display an image using image control. However the image(s) are outside of the visual studio project. I have setup a virtual directory and used that as my image1.imageurl property. It worked the first time I tried it but I deleted the original.aspx I created and started a fresh one and now it doesn't work.

virtual directory  Alias = collateral
I enabled browsing on the virtual directory

ASP.net page with image control.
image1.Imageurl = collateral/penguins.jpg
penguins.jpg is there
I have also tried /collateral/penguins.jpg as well but no luck.

Any help or alternatives would be appreciated.
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial