HtmlEncode and HtmlDecode in windows service.

S

Sakharam

Hi All,

I want to use "HtmlEncode" and "HtmlDecode" functionality of "Server" class
in Windows service.

Since these are not shared functions, I could not used it in non Web
Application.

Is there any such functions available in other Namespaces?

Please Advise.

Thanks and Regards,

Sakharam
 
K

Kalpesh

Hi,

I am not sure about this. But cant you add reference to System.web &
use this functionality

System.web.httputility has HTMLEncode & HTMLDecode functions (both are
static)

Does this help?

Kalpesh
 
S

Sakharam

Thanks Kalpesh,

Oops.. I was only thinking about System.Web.HttpContext.Current.Server
Class.

Since these are shared functions in System.web.httputility class it should
work.

Thanks again.

Sakharam.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top