Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 1.1
.NET Framework
Reference
Class Library
System.Web
HttpUtility Class
Methods
UrlEncode Method
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

Other versions are also available for the following:
.NET Framework Class Library
HttpUtility.UrlEncode Method

Encodes a URL string for reliable HTTP transmission from the Web server to a client.

Overload List

Converts a byte array into an encoded URL string for reliable HTTP transmission from the Web server to a client.

[Visual Basic] Overloads Public Shared Function UrlEncode(Byte()) As String
[C#] public static string UrlEncode(byte[]);
[C++] public: static String* UrlEncode(unsigned char __gc[]);
[JScript] public static function UrlEncode(Byte[]) : String;

Encodes a URL string for reliable HTTP transmission from the Web server to a client.

[Visual Basic] Overloads Public Shared Function UrlEncode(String) As String
[C#] public static string UrlEncode(string);
[C++] public: static String* UrlEncode(String*);
[JScript] public static function UrlEncode(String) : String;

Encodes a URL string for reliable HTTP transmission from the Web server to a client, using the specified encoding object.

[Visual Basic] Overloads Public Shared Function UrlEncode(String, Encoding) As String
[C#] public static string UrlEncode(string, Encoding);
[C++] public: static String* UrlEncode(String*, Encoding*);
[JScript] public static function UrlEncode(String, Encoding) : String;

Converts a byte array into a URL-encoded string for reliable HTTP transmission from the Web server to a client, starting at the specified position in the array and continuing for the specified number of bytes.

[Visual Basic] Overloads Public Shared Function UrlEncode(Byte(), Integer, Integer) As String
[C#] public static string UrlEncode(byte[], int, int);
[C++] public: static String* UrlEncode(unsigned char __gc[], int, int);
[JScript] public static function UrlEncode(Byte[], int, int) : String;

See Also

HttpUtility Class | HttpUtility Members | System.Web Namespace

© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker