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

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

问题描述

Server.UrlEncode 和 HttpUtility.UrlEncode 有区别吗?

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

推荐答案

HttpServerUtility.UrlEncode 将在内部使用 HttpUtility.UrlEncode.没有具体区别.Server.UrlEncode 存在的原因是与经典的 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.UrlEncode 与 HttpUtility.UrlEncode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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