.NET

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…

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…

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…

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…

Silverlight 3 Visual Studio 2008 –‘Attempted to read or write protected memory’

I created a new Silverlight 3 Application project today using Visual Studio 2008 and was surprised to see the following error – ‘Attempted to read or write protected memory. This is often an Indication that other memory is corrupt’ This seemed strange as I have created many Silverlight 3 apps…