.NET Framework Class Library
HttpServerUtility..::.UrlEncode Method

Encodes a string for reliable HTTP transmission from the Web server to a client through the URL.

Overload List

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

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.

See Also

Reference

Tags :


Page view tracker