I am try to write some code to validate the names given to folders in a tree view. I am doing this using the OnClientNodeEditting and the OnClientNodeEditted event handlers. In the OnClientNodeEditting handler I am checking the name that the user has given for special characters, and if so changing a global variable back to the old text such that in the OnClientNodeEditted method I can set the text back if need be.
This works well, except for the case when the user uses an ampersand. The TreeView behaves unexpectedly when I attempt to call set_text() on the node. It does not properly set the value of the node, it seems like somewhere the ampersand it being HTML encoded from & to & which causes the set_text() method to not properly set the new node name.
This works well, except for the case when the user uses an ampersand. The TreeView behaves unexpectedly when I attempt to call set_text() on the node. It does not properly set the value of the node, it seems like somewhere the ampersand it being HTML encoded from & to & which causes the set_text() method to not properly set the new node name.