Author: olaamigos | Posted on: 8/28/2007 1:02:55 PM | Views : 613

Hi there,
I'm looking for to encode both  the "&lt; to < and &gt for > but not getting the right value for it, so I'm wondering if there is a way to encode the Html in the javaScript and call it at the control ID, I try something like this in the JavaScript but it's not working, Does anyone know how to do it ?  thanks..
string e = "<script lang='javascript' />"; string e1 = HttpUtility.HtmlEncode(e);
string e2 = HttpUtility.HtmlAttributeEncode(e);
e1 = "&lt;script lang='javascript' /&gt;" e2 = Go to the complete details ...