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.