Hi,
I have a common dialog control that I use to get a filename. This filename is used to give the picture control a location of where to find its image. I have this working fine.

However, my problem is that this picture location is stored in a database, and is then acessed by a web server. The web server reads the location (which is normally something like "C:\images\image.gif"). This is no good for me, as this reference points to the client location, rather than the location for the server. I need both locations, eg:
1) For the picture box - "C:\images\image.gif"
2) For the server - "\\server\images\image.gif", or, I have also seen something like -
"\\server\C\Bet\Home\images\Sports\cricket.gif"

I would simply use some string functions to remove the "C:" and replace it with "\\server", but this procedure must work across different servers, and therefore have different names - therefore I cannot hardcode the servername into the string.

Is there any way I can convert the standard file location into a more "web-based" location?

Thanks for any help in advance.

Cheers,

Russ