views:

1372

answers:

3

So far so good... In asp we have the HttpUtility.UrlEncode

Is there any equivelant in vb.net?

I tried importing the system.web without any luck... yet

A: 

Umm it's HttpUtility.UrlEncode.

Lloyd
+4  A: 

That is a .NET framework class, not a language feature - so it should work for any .NET language*. You just need to add a reference to System.Web.dll first.

*=or at least, clients with access to the full framework; so not Silverlight, Compact Framework, Micro Framework or Client Profile

Marc Gravell
A: 

The HttpUtility class is used internally by the HttpServerUtility class, whose methods and properties are exposed through the intrinsic ASP.NET Server object.

adatapost