Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
Programmatically creating Folders within SharePoint List
Bijayani Baijayanti
Jun 22 2010 9:58 AM
4k
Reply
Folders help group related items within a list. The code snippet provided below (in C#.Net) explains the approach of creating a folder within a specific list.
using (SPSite oSPsite = new SPSite("http://website_url"))
{
oSPsite.AllowUnsafeUpdates = true;
using (SPWeb oSPWeb = oSPsite.OpenWeb())
{
oSPWeb.AllowUnsafeUpdates = true;
/* Path within the list where the new folder gets created
Leave it empty if it needs to be created under root */
Thanks,
Bijayani
Learn about
SharePoint Development
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
SharePoint Groups vs. SiteGroups
Uploading a document through code