This documentation is archived and is not being maintained.
HttpServerUtility::UrlEncode Method
Visual Studio 2010
Encodes a string for reliable HTTP transmission from the Web server to a client through the URL.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
UrlEncode(String) | URL-encodes a string and returns the encoded string. |
|
UrlEncode(String, TextWriter) | URL-encodes a string and sends the resulting output to a TextWriter output stream. |
UrlEncode is a convenient way to access the HttpUtility::UrlEncode method at run time from an ASP.NET application. Internally, UrlEncode uses HttpUtility::UrlEncode to encode strings.
Show: