Creating Connectable Web Parts (Mary Lee)

You can easily create connections between web parts in SharePoint Foundation, and the Walkthrough: Creating Connectable Web Parts in SharePoint Foundation topic has been recently updated to demonstrate how to do this in SharePoint Foundation 2010 with a few steps. 

  1. Create an interface for that data that is to be shared between web parts.
  2. Create a method in a provider web part and apply the ConnectionProvider attribute.
  3. Create a method in a consume web part and apply the ConnectionConsumer attribute.

There is also an associated C# and VB code sample in the MSDN Code Gallery that demonstrates how this can be done.

Soon, there will be a video that demonstrates these steps. The video is now available! Between the updated topics, code sample, and video, there is no reason you can’t become an expert at connecting web parts.

image

Mary Lee, Programming Writer.