Programmatically converting login name to claim and vice versa

SharePoint 2010 introduced Claims Based Authentication. One of the consequences of this is the fact that in order to use Forms Based Authentication (FBA) you need to configure your Web Application to use Claims instead of Classic Authentication. One of the many changes that you notice while working with claims are different login names: while in SharePoint 2007 you used something like myprovider:myuser, SharePoint 2010 makes the claims-soup of it: i:0\#.f|myprovider|myuser. And while this is something you can take into account for newly created solutions, it can get confusing when upgrading SharePoint 2007 solutions to SharePoint 2010, especially if all you need is the user name. So is String.Replace the only way to get it out or is there a better way?

Programmatically creating Sites and Site Collections from a Custom Web Template

One of the great improvements in SharePoint 2010 are Web Templates. Mirjam van Olst wrote recently a great article about why using light-weight Web Templates is a better approach than using full blown Site Definitions. While using Web Templates for creating sites and Site Collections is pretty straight-forward things get complicated when you need to create the Site Collection programmatically.

Inconvenient SharePoint 2010 Content Query Web Part and Anonymous Access

Since the release of Microsoft Office SharePoint Server 2007 the Content Query Web Part (CQWP) has served us very well as probably the best content aggregation solution available on the SharePoint platform. And while I’ve been using it heavily for Web Content Management solutions for the last three years with great success, I got really surprised when I found out that the CQWP provided with SharePoint 2010 doesn’t work with anonymous access!

Mavention Scan Page Headings

Proper usage of headings is very important on the web. It helps you structure your content making it more readable, it makes it easier for visually challenged readers to navigate through the content and helps you optimize your content for search engines. And while it’s so important, it’s quite surprising that there is no standard mechanism available within SharePoint that would allow you to quickly verify that your page has a valid headings structure. However thanks to the great extensibility of SharePoint it’s history: proudly presenting Mavention Scan Page Headings!