Jul 28, 2010, 2:30 PM
[CLOSED] [1.0] TextField and HtmlEncode
Hi,
I use TextField and I prepare data (string) for it on the server side in an Ajax event. I encode the string using HttpUtility.HtmlEncode. Then, on the client side, I just set use the setValue() method on the TextField to set the string. This works fine for e.g. < and > tags, but not for the single quote character. HttpUtility encodes it as ' and TextField displays it exacatly as ' instead of the single quote character. Is there a way around this?
Regards,
Tadeusz
I use TextField and I prepare data (string) for it on the server side in an Ajax event. I encode the string using HttpUtility.HtmlEncode. Then, on the client side, I just set use the setValue() method on the TextField to set the string. This works fine for e.g. < and > tags, but not for the single quote character. HttpUtility encodes it as ' and TextField displays it exacatly as ' instead of the single quote character. Is there a way around this?
Regards,
Tadeusz
Last edited by geoffrey.mcgill; Aug 02, 2010 at 8:23 PM.