M
Mahmoud Al-Qudsi
I have a client-server program, that sends and receives information to
our ASP.NET server via a custom XML-over-HTTP protocol.
On the server-side, I am successfully using Server.HtmlEncode() and
Server.HtmlDecode() to get the data XML-ready and extract it from XML
documents.
My problem is on the (C#) client's side. Is there any way to access
HttpServerUtility.HtmlDecode/HtmlEncode without actually having a
server defined?
The entire program is done, I've completed the entire communication
layer without having to use MS' server class, and I don't want to
define a server here just to decode/encode a string.
I can write my own function to search for an array of encoded strings
and replace them with the opposite (or vice versa), but seems like
such a waste when I have HtmlEncode and HtmlDecode right there in the
framework.
Any ideas?
our ASP.NET server via a custom XML-over-HTTP protocol.
On the server-side, I am successfully using Server.HtmlEncode() and
Server.HtmlDecode() to get the data XML-ready and extract it from XML
documents.
My problem is on the (C#) client's side. Is there any way to access
HttpServerUtility.HtmlDecode/HtmlEncode without actually having a
server defined?
The entire program is done, I've completed the entire communication
layer without having to use MS' server class, and I don't want to
define a server here just to decode/encode a string.
I can write my own function to search for an array of encoded strings
and replace them with the opposite (or vice versa), but seems like
such a waste when I have HtmlEncode and HtmlDecode right there in the
framework.
Any ideas?