Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我记录页面的查询字符串。它与C#.
C#
如何%2c%20在代码中将字符串转换为普通字符串C#?
%2c%20
HttpUtility.UrlDecode
如果字符串在当前请求的 url 参数中,您可以使用Request.QueryString它来访问它,从而隐式解码它。否则使用HttpUtility.UrlDecode.
Request.QueryString
HttpUtility.UrlDecode 会做。检查这个MSDN 链接