How to do Code Behind Files in SharePoint v3 Sites

I’ve clarified a previous post on SharePoint development platform and addressed questions on how to do code behind files in SharePoint v3 sites.

Last week I had a post that was a bit emotionally charged in talking about SharePoint as a development platform. In that post I mentioned that you could do code behind files in SharePoint v3 sites. Since that post I’ve been hit with a good bit of email asking me “how?” I’ve also heard the question from quite a few people over the last year or so since this product has really been out there in this version. Instead of talking about it again and again, I figured it would be a good time to write up a little sample with screenshots to show how to do it. Finally, something to point people to!

When I show this technique to people during my WCM developer classes, it is just another notch towards realizing that SharePoint, specifically v3, is truly just an enterprise ASP.NET 2.0 application and helping knock down the impression that SharePoint is this monstrous beast that can’t be tamed. Hey… I’ll listen to that argument for v2, but v3 is totally different and a fantastic

Stepping down off the soapbox… I hope this article opens up some eyes and helps you in any projects you’re working on! Granted, it’s a super simple example, but it should demonstrate the HOW part of using code behind files in SharePoint pages. The goal was to keep it real simple so you can see where the SharePoint piece is.

Andrew Connell
Developer & Chief Course Artisan, Voitanos LLC. | Microsoft MVP
Written by Andrew Connell

Andrew Connell is a full stack developer who focuses on Microsoft Azure & Microsoft 365. He’s a 20+ year recipient of Microsoft’s MVP award and has helped thousands of developers through the various courses he’s authored & taught. Andrew’s mission is to help web developers become experts in the Microsoft 365 ecosystem, so they can become irreplaceable in their organization.

Share & Comment