encode string in Windows service

  • Thread starter Thread starter Bar Elimelech
  • Start date Start date
B

Bar Elimelech

Hi,

I'm trying to encode a string in a windows service that should be past to a
asp.net web application in the querystring.

I know that in order to do it in asp.net I should use the Server.HtmlEncode
from the system.web namespace but I can't find a way to do it in a windows
service or windows application.

Any ideas how can I do it?

Thanks
Bar
 
Add a reference to the System.Web assembly, and trythe HtmlEncode method of the HttpUtility class.
 
Back
Top