Posted on 2009-07-01
I am trying to get a virtual path to a gif file I have in the root folder of my domain.
Using Server.MapPath("./Random.gif") I should get the path d/hosting/member/scafmars/site1/Random.gif.
Instead I am getting file///d/hosting/member/scafmars/site1/Random.gif when I click Properties on the image on the page.
The file/// is causing the image to not appear on the page.
Can anyone tell me why I am getting the file/// preceding the path?