Wednesday, February 23, 2011

how to do web part connections in SharePoint 2010

1) Add web part zones to that page
2) Add my custom web parts in that zones
3) Connect those web parts in the page itself.

When I created the web part using Visual Studio 2010 template, it got derived from System.Web.UI.WebControls.WebParts namespace,

I changed that to Microsoft.SharePoint.WebPartPages.WebPart which solved my problem.