O'Reilly logo

Microsoft SharePoint 2010 Development with Visual Studio 2010: Expert Cookbook by Balaji Kithiganahalli

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating connectable web parts

The connectable web parts or master-detail web parts are two different web parts that are connected to each other in a provider/consumer fashion. In this recipe, we will create two web parts where one is a provider and the other a consumer.

For this recipe, we will create a DepartmentList web part that acts as a provider and a DepartmentEmployees web part that acts as a consumer. Based on the row selected in the DepartmentList web part, we will list all the employees of the department in the DepartmentEmployees web part.

Getting ready

You should complete the previous recipes successfully so you understand the concept of web parts and its deployment to follow this one.

How to do it...

  1. Launch your Visual Studio 2010 IDE ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required