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

HttpServerUtility.UrlEncode Method

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.

  NameDescription
Public method UrlEncode(String) URL-encodes a string and returns the encoded string.
Public method UrlEncode(String, TextWriter) URL-encodes a string and sends the resulting output to a TextWriter output stream.
Top

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.