Export (0) Print
Expand All
1 out of 3 rated this helpful - Rate this topic

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.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member UrlEncode(Byte[]) Converts a byte array into an encoded URL string.
Public method Static member UrlEncode(String) Encodes a URL string.
Public method Static member UrlEncode(String, Encoding) Encodes a URL string using the specified encoding object.
Public method Static member UrlEncode(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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.