TreeViewAdapter RaisePostBackEvent() implementation question

Feb 25, 2010 at 7:19 PM

Hi,

is there any particular reason to replace '\' by '/' in the eventArgument value to resolve the node path in TreeViewAdapter.cs line 100?

 

string selectedNodeValuePath = eventArgument.Substring(1).Replace("\\", "/");

I currently have a TreeView that uses multiple '\' in the value, and with the current implementation it does not work, it will never find the node with the path it gives to the TreeView FindNode() method.

If I modify the line above by simply removing the call to Replace(), everything works as expected in my app.

thanks