URL编码与反编码

来源:互联网 发布:ftp yum 源安装 编辑:程序博客网 时间:2024/06/04 18:52

第一种:

UrlParam=UrlParam.Replace(cType,Server.UrlEncode(cType));

<%=HttpUtility.UrlEncode(cType)%>

 

第二种:

Server.HtmlEncode(string s)

Server.HtmlDecode(string s)

0 0
原创粉丝点击