HttpUtility.UrlDecode
HttpUtility.UrlEncode
HttpUtility.HtmlDecode
HttpUtility.HtmlEncodeServer.UrlDecode
Server.UrlEncode
Server.HtmlDecode
Server.HtmlEncode

解决方案 »

  1.   

    故名思义
    HttpUtility.UrlDecode
    Url解码
    HttpUtility.UrlEncode
    Url编码
    HttpUtility.HtmlDecode
    Html解码
    HttpUtility.HtmlEncode
    Html编码
    Server.UrlDecode
    Server.UrlEncode
    Server.HtmlDecode
    Server.HtmlEncode
    就是调用上面的四个方法。
    Url编码一般是什么%XX的形式,如%20,Html编码就是&xxxx;的形式,如 
      

  2.   

    Server是 HttpServerUtility 类的实例,提供的都是实例方法,这些方法通过asp.net内部属性Server来公开HttpUtility是一个工具类, 提供的是静态方法当然,二者提供的方法作用是一样的
      

  3.   

    用reflector看了一下,Server的方法内部的确是直接调用HttpUtility方法的