asp.net.neturlencode

Server.UrlEncode vs. HttpUtility.UrlEncode


Is there a difference between Server.UrlEncode and HttpUtility.UrlEncode?


Solution

  • HttpServerUtility.UrlEncode will use HttpUtility.UrlEncode internally. There is no specific difference. The reason for existence of Server.UrlEncode is compatibility with classic ASP.