Thursday, April 14, 2011

Accessing HttpUtility class in C# Winforms

To use HttpUtility class in C# winforms, do the following:
1. Add reference to System.Web dll
2. Use any methods available in HttpUtility class.
Code:
System.Web.HttpUtility.HtmlDecode(mystring);
System.Web.HttpUtility.UrlDecode(mystring);
Cheers!

0 comments:

Post a Comment