Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URL Encoding in vb.net

Status
Not open for further replies.

Navitas

Programmer
Jul 20, 2004
24
0
0
GB
Hi I have created a vb.net application that then has to send data via a HTTP POST. It is NOT ASP.net.

Is there any way to access the members of the System.web class that are available when using ASP.net??

Basically I wanted get to the HttpServerUtilities or HttpUtilites so I could use the URLEncode method. This will save me performing loads of string.Replace calls on the data I want to send!

Alertnatively does anyone know of any other ways to encode a URL?

Thanks
Darren
 
OK - I was being a twat!

Hadn't imported the system.web class as a reference and was just trying to access it from within the code.

Everyone has there off days!!

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top