Kirk Evans Blog

.NET From a Markup Perspective

How I Became a SharePoint 2010 MCM

I recently attained the Microsoft Certified Master for SharePoint 2010 certification.  I have long wanted to write about the experience, but honestly didn’t know how to begin.  After quite a few conversations with friends and colleagues, I thought I would share some insight about the process.  I am not writing this to dissuade you from… Read more

Making The Case for Async Web Parts

This post will show how to make a call to HttpWebRequest asynchronously from a web part and wait on the result or time out. Years ago, I was fortunate to meet Jeff Richter and attend a session he gave on .NET performance.  He discussed I/O completion ports and showed why any calls from an ASP.NET… Read more

Programmatically Creating a SharePoint Content Type

I have been working on a project that requires creating a content type programmatically.  Admittedly, it took me awhile to figure it out.  You can create a content type for SharePoint declaratively in a feature using XML similar to the following: <?xml version="1.0" encoding="utf-8"?> <Elements Id="2fdb55a0-75c1-4ad4-b709-82b2e1393f34" xmlns=""> <ContentType ID="0x010100C568DB52D9D0A14D9B2FDCC96666E9F2 007948130EC3DB064584E219954237AF39 0075425CE93BDC404F8B042629FC235785" Name="TermsAndConditionsType" Group="Custom Content Types"… Read more

What is a Dedicated Support Engineer?

For the past 7 years, I worked in Developer Platform Evangelism to talk to customers about the latest and greatest technologies that Microsoft would soon be releasing, and worked to gain early adopters of the technologies.  This was a very fun job, but I desired a change.  This past July, I joined the Premier Field… Read more

SQL Server Provider for Claims-Based Authentication in SharePoint 2010

This post shows how to implement FBA claims-based authentication for SharePoint 2010.  We will use the ASP.NET membership and role provider to authenticate users to our SharePoint 2010 site. Overview SharePoint 2007 introduced the ability to use the ASP.NET Membership Provider to authenticate users.  SharePoint 2010 builds upon this capability using the new claims-based authentication… Read more

Getting XML Data From a SharePoint List – The Easy Way

Steve Pietrek has a great link blog (Steve Pietrek – Everything SharePoint and Office) that aggregates blog postings on SharePoint and Office.  If you are at all interested in seeing what’s possible with SharePoint, I highly recommend you subscribe to this great resource.  In his April 30th link posting, there was a gem of a… Read more

Convert XElement to XmlNode (and Convert XmlNode to XElement)

This is just way cool.  Check out Eric White’s blog for a slick use of extension methods to make it easier to convert types in the System.Xml namespace to types in the System.Xml.Linq namespace, and vice-versa.  Here’s a quick teaser: XElement e = new XElement("Root", new XElement("Child", new XAttribute("Att", "1") ) ); XmlNode xmlNode =… Read more

XmlWriterSettings Encoding Being Ignored?

I had an interesting exchange in an internal mailing list today, and thought that my readers could possibly benefit from this clarification as well.  Scenario You are working with the XmlWriter class and trying to write the contents to something.  You are expecting the XML declaration to look like: <?xml version=”1.0″ encoding=”utf-8″?> However, when you… Read more