If this is your first visit, be sure to
check out the
FAQ
by clicking the
link above. You may have to
register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
halloooww...
i use vb.net 2003. and i need to encode/decode string in order to include within URL. it's like server.urlencode in asp or NMURL.encode in delphi... i've search in book but i've not found it yet.
can someone help me? can i get some example code of that?
coz i'm new in this... thanx....
Welcome to the forums
Add a reference to system.web.dll in the .NET references menu. Then you can use code like this:
VB Code:
Dim MyUrl As String = "http://www.vbforums.com"
Dim EncodedURL As String = System.Web.HttpUtility.UrlEncode(MyUrl)
MessageBox.Show(MyUrl & Environment.NewLine & EncodedURL)
Advertiser Disclosure:
Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.