Author: werice | Posted on: 11/22/2009 8:08:55 PM | Views : 249

 I have an imaage and I want to build the image dynamically. The issue is that the images reside in a sub drive called images.
 
I try to load the image from the the drive and it does not load but when I add the image to the project it loads fine.
Below is the code.
Dim instance As TreeView Dim value As String instance = TreeView1 value = instance.SelectedValue imgBuyBarter.ImageUrl = "~/1810HydAllPurpose_sm.jpg"The text above loads fine when the JPG is added to the project.But when I try to just get it from the sub directory the image is blank. I try to load it as in the code below.imgBuyBarter.ImageUrl = "~/images/1810HydAllPurpose_sm.jpg"imgBuyBarter. ...

Go to the complete details ...