Hi,
I want to clear then add root folders on a postback in an event after page load.
Is that possible? How would I do that?
Thanks
Dave
7/6/2008 9:01 PM
Yes, you access the root folders and change them in another event. You should use FileVistaControl.SessionRootFolders property to get or set the array of the current root folders. See the below code sample which creates a new array of the root folders and assigns it to the property.
FileVistaRootFolder[] rootFolders = new FileVistaRootFolder[1];
rootFolders[0] = new FileVistaRootFolder("Test Root Folder", "some path");
FileVistaControl.SessionRootFolders = rootFolders;
Cem Alacayir
7/7/2008 8:19 AM