Uri to URLencoded string
I have an object of Uri. How to get the Urlencoded string? Any builtin support o开发者_运维技巧f Uri class?
HttpServerUtility.UrlEncode
or HttpUtility.UrlEncode
in System.Web
Use Uri.EscapeDataString()
and Uri.UnescapeDataString()
static methods of Uri
class.
精彩评论