Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

Special characters in URL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lloyd Sheen - 08 Oct 2007 15:36 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.