Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Copying Folder Names into Data Table

$
0
0

hi,

I am getting the folder names through below code snippet under folder1 of Pages Libary

                          

SPFolderCollection oFolders = myList.RootFolder.SubFolders["folder1"].SubFolders;                    
                    foreach (SPFolder oFolder in oFolders)
                    {
                        if (!oFolder.Name.Equals("Forms"))
                        {

                        }
                    }

After that i have to copy the folder Names to the data table.

Because here i don't see an option to assign values using GetDataTable() method of SPListItemCollection.

Please share your ideas/thoughts for the same.

Regards,

Sudheer 


Thanks & Regards, Sudheer


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>