.NET Development

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…

The User Information List – a really valuable resource!

The SharePoint ‘User Information List’ is an often ignored hidden SharePoint list. When a user is added to a SharePoint site their details are copied into the list. It’s really easy to forget its there and it can be a valuable resource when developing in the sandbox. The other day…

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…

Cannot use an UpdatePanel in a SharePoint 2010 Sandbox Solution

I have been working on a SharePoint 2010 web part recently that uses an EditorPart to allow the users to set some properties for the web part. I wanted to use an UpdatePanel within the EditorPart to avoid postbacks and as I understood it the SharePoint 2010 masterpages already have…