Showing posts with label creating. Show all posts
Showing posts with label creating. Show all posts

Thursday, March 22, 2012

Server.HtmlDecode for windows services

Hello,

does anybody knows the equilant of Server.HtmlDecode when creating a windows service?

Thanks, SonuHave you tried setting a reference to System.Web and doing:


string decoded = System.Web.HttpContext.Current.Server.HtmlDecode(encodedString);

When using this I get:

"HttpContext" is not a member of "web".

Sonu
uups...sorry I forgot to add the reference. It works now.

Sonu