Hey,

My database currently stores the location of a specific image, however i'm trying to get the page to change the

img.ImageUrl = "C:\mug.jpg";

However it doesn't display the image, is there any reason for this?

If I use a local image it works perfectly IE:

img.ImageUrl="~/images2/mug.jpg";

Any ideas at all please?

img.Imageurl = "will look in your virtual Directory not in C:\"

Is there any possible way to get it not to look in the virtual directory at all and point to a file locally?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.