Friday, February 22, 2008
There are times where you require web methods like Server.HtmlDecode and Server.HtmlEncode for use within your business layer.
To get access to these methods one needs to firstly add the System.Web reference to your application project there by exposing these methods to your project.
Next, make reference within your class to the System.Web class.
Now you can access all of System.Web's methods.

For example:
 HttpContext.Current.Server.HtmlDecode("");
 HttpContext.Current.Server.HtmlEncode("");