Part 2. Developing SharePoint 2010 Web Parts – SharePoint 2010 Web Parts in Action

Part 2. Developing SharePoint 2010 Web Parts

Part 2 covers 11 full chapters of Web Part development topics. In part 1, you learned what Web Parts are, how you can use them, and how you can configure applications with them. But, you’ll eventually end up with a scenario requiring you to build your own custom Web Part—and that’s why you’re reading this book.

We’ll start from the ground up by introducing you to Visual Studio 2010 and the SharePoint Development Tools. You’ll learn how to build Web Parts using best practices to avoid falling into traps, in many cases, using standard ASP.NET techniques. So if you’ve been building ASP.NET applications and controls, you’ll find quite a lot of common tasks and I’ll show you the differences.

The longest chapter of this book, chapter 5, will walk you through the various ways that you can make your Web Parts customizable. Next, in chapter 6 you’ll learn how to localize your Web Parts and use resources such as JavaScripts and images. An essential part of SharePoint development is how you package and deploy your solutions, and, in chapter 7, I’ll show you just that.

Sooner or later you’ll get to the point that your Web Part and solution misbehave, and then it’s time to troubleshoot those problems. Chapter 8 is all about troubleshooting and how to avoid running into these situations. Once your Web Part is up and running, you may need to fine-tune it for performance. Chapters 10 and 11 focus on the new features introduced in SharePoint 2010, such as integration with the Ribbon menu and other dynamic features of the SharePoint web interface.

Silverlight is a key component of the Microsoft web technologies, and you’ll learn how Silverlight can be used in combination with Web Parts. Chapter 12 gives you insight into how to turn your Web Parts into mobile-friendly components so that your users can access on any devices the functionality that you build. Chapter 13 discusses design patterns; you’ll see how to build robust and testable Web Parts using proven patterns and techniques.

I hope you have a great time reading through this part of the book and enjoy the code samples. You can download most of the code samples from the book’s website at and use them as a reference for your own projects.