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
 
Bar Elimelech said:
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?

There's no reason you can't do it in a service or Windows application -
you just need to add a reference to System.Web.dll.
 
Back
Top