Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper way to encode a URL
Message
De
04/04/2007 22:08:25
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Proper way to encode a URL
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01212311
Message ID:
01212311
Vues:
59
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
Répondre
Fil
Voir

Click here to load this message in the networking platform