Wednesday, October 7, 2009

How to Html Encode/Decode outside the Asp.net process

Use System.Web.HttpUtility.HtmlDecode in place of System.Web.HttpContext.Current.Server.HtmlDecode as HttpContext.Current is not available outside asp.net (e.g. in WCF services).


No comments: