A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

[VB.NET]URL Encoder+Decoder

2.9k views · started by Blazer ·
#1
[VB.NET]URL Encoder+Decoder
I just wrote this Very Simple encode & url decoder.

Imports System.Web

Public Function Encode(ByRef URL As TextBox, _
ByRef Encoded As TextBox) As Boolean
Dim strEncode As String
strEncode = System.Web.HttpUtility.UrlEncode(URL.Text)
Encoded.Text = strEncode
End Function

Public Function Decode(ByRef URL As TextBox, _
ByRef Decoded As TextBox) As Boolean
Dim strDecode As String
strDecode = System.Web.HttpUtility.UrlDecode(URL.Text)
Decoded.Text = strDecode
End Function

Program made by me: http://forum.logicalgamers.com/attachment.php?attachmentid=160&stc=1&d=1270229841
#2
Nice job.

Simple and efficient ;)

keep up the good work.