Monday, August 15, 2011

Load SharePoint List Items Using Server Object Model

using (SPSite site = new SPSite(ServerUrl))
{
    using (SPWeb web = site.OpenWeb())
    {
 
        SPList Tasks = web.Lists[TaskListName];
        // What ever u want
    }
}
Post a Comment