Export (0) Print
Expand All

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

Show:
© 2014 Microsoft