Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

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

share|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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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