Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proper way to encode a URL
Message
From
04/04/2007 22:08:25
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Proper way to encode a URL
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01212311
Message ID:
01212311
Views:
60
I have this method to encode a URL:
        ' Encode a string
        Public Function Encode(ByVal tcString As String) As String
            Return System.Web.HttpUtility.UrlEncode(tcString)
        End Function
However, this one replaces spaces with + and not %20. It has been a while since the last time I used this method. Or, am I using the wrong System.Web.HttpUtility method?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Reply
Map
View

Click here to load this message in the networking platform