I’m working on a feature which creates List instances, the feature has a receiver which makes configuration changes to the created Lists. When activating the feature for the first time (when the list instance is created) the receiver executes and an SPException is thrown when the code calls the SPList.Update method. The information in the … Continue reading SharePoint: Calling SPList.Update Causes “Save Conflict” SPException
Loading a text file from the SharePoint content database should be straightforward, and it is, kind of. The work I’m doing right now requires me to load XML and XSL files provisioned into the content database. Initially I figured I’d use the GetFileAsString method of SPWeb. Despite numerous posts extolling the virtues of this method, … Continue reading SharePoint: Load a Text File from the Content Database.
Abstract Spaces has a good post here which lays out many types and enumerations which are regularly used within CAML.
Normally when adding new list items to a List using the object model you’d do something like; However, the drawback of this is that the OM will retrieve all of the List’s items (to populate the Items collection) prior to you calling the .Add() method. If your list has many list items, you’re probably going … Continue reading Add New SharePoint List Items Efficiently
Found here on MSDN.