Posted
on Nov 24, 2010
(permalink)
Even using that format I still get the same result. Let me try to be more clear about my scenario.
When my page loads (A DNN Page), I set the paths dynamically based on a cookie, and everything works well here. I have a RadComboBox on the screen, that when changed fires code behind that dynamically changes the paths to where the file explorer should look.
The first problem is that after changing the paths in code behind, there is no command or line of code I have found that can "refresh" the file explorer so that it is displaying the newly set paths. (I did try TreeView.Nodes.Clear() with no luck).
The second issue is that if I click the "refresh" button after the paths change, the refresh happens but it throws the "Invalid Characters in Folder Name" error. Once I click ok on the error it goes away until the next time the code tries to reset the path.
To make this work, I store the path in a cookie and redirect myself to the same page. (not ideal but is working and without errors)
To me it seems as if there is some property of the RadFileExplorer control that is not being set, thus throwing the error before correcting itself.
I have tried many different values and formats for the initial path, but nothing seems to make this error message go away.