.NET Framework Class Library
HttpServerUtility..::.UrlEncode Method
Encodes a string for reliable HTTP transmission from the Web server to a client through the URL.
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.
Reference