UrlEncode Method

HttpUtility.UrlEncode Method


Encodes a URL string. These method overloads can be used to encode the entire URL, including query-string values.

To encode or decode values outside of a web application, use the WebUtility class.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)


Converts a byte array into an encoded URL string.

System_CAPS_pubmethodSystem_CAPS_staticUrlEncode(Byte[], Int32, Int32)

Converts a byte array into a URL-encoded string, starting at the specified position in the array and continuing for the specified number of bytes.


Encodes a URL string.

System_CAPS_pubmethodSystem_CAPS_staticUrlEncode(String, Encoding)

Encodes a URL string using the specified encoding object.

Return to top
© 2015 Microsoft