Server.UrlEn code与HttpUtility.UrlEn code [英] Server.UrlEncode vs. HttpUtility.UrlEncode

查看:131
本文介绍了Server.UrlEn code与HttpUtility.UrlEn code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有间Server.UrlEn code的差异和HttpUtility.UrlEn code?

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

推荐答案

HttpServerUtility.UrlEn code 将使用 HttpUtility.UrlEn code 内部。没有具体的差异。之所以存在 Server.UrlEn code 的是与传统的ASP兼容。

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

这篇关于Server.UrlEn code与HttpUtility.UrlEn code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆