' Encode a string Public Function Encode(ByVal tcString As String) As String Return System.Web.HttpUtility.UrlEncode(tcString) End FunctionHowever, 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?