Provides methods for encoding and decoding URLs.
| C# | Visual Basic |
public static class HttpUtility
Public NotInheritable Class HttpUtility
| All Members | Methods | ||||
| Icon | Member | Description |
|---|---|---|
| HtmlDecode(String) |
Converts a string that has been HTML-encoded for HTTP transmission into a decoded string.
| |
| HtmlDecode(String, TextWriter) |
Converts a string that has been HTML-encoded into a decoded string, and sends the decoded string to a TextWriter output stream.
| |
| HtmlEncode(String) |
Converts a string to an HTML-encoded string.
| |
| HtmlEncode(String, TextWriter) |
Converts a string into an HTML-encoded string, and returns the output as a TextWriter stream of output.
| |
| UrlDecode(String) |
Converts a URL-encoded string into a decoded string.
| |
| UrlDecode(String, Encoding) |
Converts a URL-encoded string into a decoded string, using the specified encoding object.
| |
| UrlEncode(String) |
Encodes a URL string.
| |
| UrlEncode(String, Encoding) |
Encodes a URL string using the specified encoding object.
| |
| UrlEncodeToBytes(array<Byte>[]()[]) |
Converts an array of bytes into a URL-encoded array of bytes.
| |
| UrlEncodeToBytes(array<Byte>[]()[], Int32, Int32) |
Converts an array of bytes into a URL-encoded array of bytes, starting at the specified position in the array and continuing for the specified number of bytes.
| |
| UrlEncodeToBytes(String) |
Converts a string into a URL-encoded array of bytes.
| |
| UrlEncodeToBytes(String, Encoding) |
Converts a string into a URL-encoded array of bytes using the specified encoding object.
|
Equivalent to System.Web.HttpUtility
| Object | |
| HttpUtility | |