>

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.

Quick and Simple: Provision a Web Site Using SharePoint Object Model In C#

I tried searching for a little snippet code that would show how I can create a new SPWeb in a site collection. I didn’t find it as quickly or easily as I expected so I thought I’d slap together a little entry on the subject. This code cre…

Simple Explanation: “Value does not fall within the expected range.”

UPDATE: An anonymous poster left a great comment about internal names. Be sure to read it. When working with event receivers and other code that references SharePoint list items via the object model, I often make mistakes that generate this error at…

Quick & Easy: Create a Folder and Assign a Content Type (Or, Have Your KPIs and Eat Them Too)

In order to work around a KPI problem I wrote about here, I did some testing and discovered that KPI’s work against folders with meta data in the same way that they work against documents or list items. I proved it out by creating a new conte…

Quick and Easy: Get the SPFolder of an SPListItem in an Event Receiver

I hate to admit it, but I struggled with this one all day. My event receiver needs to update a field of its parent folder. This little bit shows how to do it: private void UpdateParentFolder(SPItemEventProperties properties)

Yet Another Event Receiver Debug Trick

I’m sure I’m not the first person to come up with this. However, I haven’t noticed anyone publish a trick like this since I started paying close attention to the community last July. So, I thought I’d post it this quick and …

Solution: SPQuery Does Not Search Folders

This past week I was implementing an "evolving" solution for a client that uses BDC and SPQuery and ran into some difficulty using SPQuery against a document library containing folders. Bottom line: assign "recursive" to the view attr…

MOSS KPI bug? List Indicator Tied to Document Library With Folders

UPDATE 02/29/08: I solved this problem by creating a folder and then assigning a content type to the folder which has the meta data I need for the KPIs. I described that in a little more detail here. We have implemented a technical solution wher…

Solution to Problem: “FileNotFoundException” With My Feature Receiver.

I was working on a feature last week that would add some event receivers to a specific list instance. (I blogged a bit about that list receiver here). Using the command line, I could install the feature with no error (but see below for the hidden err…

Quick & Easy: Rename Uploaded File Using SharePoint Object Model Via an Event Receiver

UPDATE: This works but there are significant limitations which are described in the comments. This may still be useful in some cirumstances. UPDATE 2: In my current project, users always upload documents. As a result, I don’t run into a …

Quick Tip: Content Query Web Part, Lookup Column Value and XSL

I have a column name in a content type named "Real Estate Location". That column is of type "lookup". I have modified <CommonViewFields> and ItemStyle.xsl to show the column. A simple <xsl:value-of select=…> return…