0

I have an object of Uri. How to get the Urlencoded string? Any builtin support of Uri class?

asked Dec 9, 2010 at 8:55

2 Answers 2

2

HttpServerUtility.UrlEncode or HttpUtility.UrlEncode in System.Web

answered Dec 9, 2010 at 8:57
Sign up to request clarification or add additional context in comments.

Comments

1

Use Uri.EscapeDataString() and Uri.UnescapeDataString() static methods of Uri class.

answered Dec 9, 2010 at 8:57

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.