I've found two tutorials that I'm looking at:

But both talk about having one project with two webparts. Can I still communicate between webparts if they are in seperate projects?


Yes, you can have consumer and provider web part in different projects. Even SharePoint has connectable web parts in different assemblies.

Check this example: http://www.codeproject.com/KB/sharepoint/ConnectingCustomWebParts.aspx

| improve this answer | |
  • I think its worth pointing out that while you may be able to create consumer and provider Web parts in different projects, support for Web Part connections in SharePoint 2010 is "based on connecting Web Part instances that are running on the same Web Part page" (from the book "Inside Microsoft SharePoint 2010"). – Benjamin J Athawes Jun 9 '11 at 8:19
  • That's a good reminder..technically those interfaces exchange data as part of web part and page life cycle so they should be on same page. – Ashish Patel Jun 9 '11 at 12:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.