Modifying web.config in SharePoint

Introduction This post covers how to modify web.config through object model in SharePoint. Changes to the web.config should not be done manually which is a bad practice. Modifications should be done through SPWebConfigModification class object and the complete track of changes will be saved in configuration database. This is the best practice to be used […]

November 2, 2013 · Adi · No Comments
Tags: , , ,  · Posted in: C#, Sharepoint 2010

Download files as Zip File in SharePoint

Introduction In this post we will see how to download selected document library items as zip file. The zip file creation api is from open source code of icsharpcode.net Skill Level – Medium

August 11, 2013 · Adi · 48 Comments
Tags: , , , , ,  · Posted in: C#, Sharepoint 2007, Sharepoint 2010, SharePoint 2013

Move Files of SharePoint Document Library using Object Model

Introduction In this post we will see how to move files of SharePoint document library to one location to another using object model. We will also see how to keep same file Version, Modified and ModifiedBy values after moving The post includes Generic method to move file to destination Keeping the file version, Modified and […]

August 9, 2013 · Adi · No Comments
Tags: , , , , ,  · Posted in: C#, Sharepoint 2007, Sharepoint 2010, SharePoint 2013