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.
- Create an interface for that data that is to be shared between web parts.
- Create a method in a provider web part and apply the ConnectionProvider attribute.
- 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.
Mary Lee, Programming Writer.
Comments
Anonymous
January 13, 2011
How would you allow webpart connections with visual webparts?Anonymous
January 13, 2011
How would you allow webpart connections with visual webparts?