Hello,
On server side, I set node.Text with a String like ("<B>Bold Text<B>"), all is good.
on client side, I try to use set_text with same text.
It's displayed ok, but after that, my server side event "oncheckboxselectionchanged" is never called
How can I set text (with html tags) of a node on the client ???
Thx
Hi dufour01,
Can you show me how you are assigning the string to the text property? You will need to use HttpUtility.HtmlEncode() to html encode the string before assigning it to the Text property.
Httutility is for server side.
I use set_text in client side.
I will be happy to help with your question.
It is my understanding that you wish to learn how to set text of a WebDataTreeNode using client side logic. The below script uses the WebDataTree NodeClick client side event to set the text as italics with the use of html tags:
Please let me know if you have any questions regarding my suggestion.