Change the parent of a folder

This example demonstrates how to change the folder parent by specifying the folder and the new parent:


In this example we create an album first by CreateAlbum method of LibrariesManager. For more information check For developers: Create image libraries. Then we are creating two folders under the album by using CreateFolder method and the album as a parameter. For more info go to For developers: Create folders inside libraries. Finally we are changing the parent of the first folder to become the other folder instead of the album.This is achieved by the ChangeFolderParent method where the first parameter is the folder and the second is the new parent of the folder.

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?