C#

Debugging SharePoint 2007 Customer Timer Jobs–The easy way

When debugging your custom SharePoint 2007 Timer Jobs you don’t necessarily need to attach to the OWSTimer process. All the blogs and information I have found out there on the interwebs suggest two options Attach your Timer Job code to the OWSTimer process and then wait for the job to…

Synchronous Event Receivers

SharePoint is a big (massive!) product, there are features and enhancements in SP2010 which I haven’t even used yet – mostly because I haven’t needed to. One of these is the ability to run after events synchronously (ItemAdded, ListAdded and WebProvisioned). Previously all after events were executed asynchronously and on…

Strange goings on with the format of dates in SharePoint Calculated Columns

I came across a weird issue this morning whilst debugging a Web Part. I had a list that stored a date in one column and a Calculated Column that returned a date after applying a formula. The regional settings of the site were set to English (Australia) – see screenshot…

Deploying Nintex Workflow Custom Action with Multiple Web Front End’s

After quite a break from doing any Nintex development I was required to write a custom Workflow Action for a client. I broke out the Nintex SDK to remind myself how to do this and wrote my action. I debugged and tested the action on my dev VM and got…

Slides from my presentation at SUGUK Notts

Here is my slide deck and code from the presentation I did at SUGUK in Nottingham on 23/3/2011. I’ve been meaning to upload these for a while and have finally got round to it. You can find my PowerPoint presentation embedded below – you can also download it directly from…

SPGridView paging controls not displaying

  I’ve been meaning to blog this for a while so here goes. Recently I was working on a web part which contained an SPGridView. The SPGridView had been setup to allow paging but when I deployed the web part the paging controls would not display. Eventually after some playing…

SharePoint Web Part Properties Error when class not Serializable

  I came across an issue the the other day when adding a web part property to a SharePoint 2010 web part. My web part property was a List<> of a custom class and I was updating this property using a custom editor part. I packaged and deployed the web…

Visual Studio SharePoint Event Receiver SPI Bugs

I have been doing a fair amount of SharePoint 2010 development recently, a lot of this with event receivers. The new SPI (SharePoint Item) functionality in VS2010 is great and long gone are the days of creating Elements xml files manually. Although it isn’t all sunshine and roses as I…