Url encoding in C#

string encoded = System.Web.HttpUtility.UrlEncode("string to encode");
If you're planning to do this from a win form application, be sure to add System.Web as a reference.

Related posts:

Comments

comments powered by Disqus