TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Bijayani Baijayanti
NA
14
0
Programmatically creating Folders within SharePoint List
Jun 22 2010 9:58 AM
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
Reply
Answers (
0
)
SharePoint Groups vs. SiteGroups
Uploading a document through code