I have a treeview where I am dynamically adding nodes and attaching a JavaScript click function to each node. The issue is with the use of the escape function on the url values stored in thisFileNode.Value. Even after using the escape function in my code, it's still not working properly. Can someone please help me?
I'm not familiar with the escape function, can someone explain what it actually does and how it should be used?
thisFileNode.NavigateUrl = "javascript:clickNode(this, escape('" + thisFileNode.Value + "'));"
If there are any special characters in the URL, they should be removed. How can I ensure that the URL remains valid?