Author: Bluebird1984 | Posted on: 11/26/2008 4:15:36 AM | Views : 1180

Hi,

I have multiple images on my server in different folders. the imagesa are called Pic1, Pic2 etc, and I'd like to display certain ones in a webform.

E.g.

Picture locations = \\Server1\D$\USER1\pic1.jpeg

\\Server1\D$\USER1\pic2.tif

\\Server1\D$\USER3\pic1.bmp

 I can easily point the url to the location using the following C# code

pic1.ImageUrl = "\\\\Server1\\D$\\ + Session["NetID"].ToString() + "\\"

 

 - Because the images will have differnet file extensions I can't hard code it to Go to the complete details ...