I have a need to translate special characters like & in URLs. I have a
routine that has been doing this as substitutions based on characters I
notice. This of course does not handle everything.
Is there a dot.net api call for this. For example if I have a folder under
the virtual directory which contains files, the folder name could contain an
& or other allowable characters for file names. The file name can also
contain those characters but when I use them as the URL for links or images
they do not work.
There must be some easy way to handle URLs.
Thanks
LS
Aidy - 08 Oct 2007 15:46 GMT
Server.UrlEncode
http://msdn2.microsoft.com/en-us/library/aa332850(vs.71).aspx
>I have a need to translate special characters like & in URLs. I have a
>routine that has been doing this as substitutions based on characters I
[quoted text clipped - 10 lines]
> Thanks
> LS
Mark Fitzpatrick - 08 Oct 2007 19:11 GMT
And then Server.UrlDecode to decode the encoded values.

Signature
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
>I have a need to translate special characters like & in URLs. I have a
>routine that has been doing this as substitutions based on characters I
[quoted text clipped - 10 lines]
> Thanks
> LS