Url encoding in C#
September 15, 2009
ASP.NET
C#
Snippet
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:
Generating PDF from .Net
Extend string with own methods
New in Kaliko CMS 1.0.0
CSS add link arrow using :after without underline
Remove extra white-spaces within a string