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

When I add my provider and consumer web parts to a web part page (following Walkthrough: Creating Connectable Web Parts in SharePoint Foundation) I find that the 'Connections' option on my webpart is disabled. I hover over the option to see the tooltip

The Web Part you are connecting from does not allow authoring of connections.

What causes this message to appear, and how can I fix it?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

This error simply means that the web part being edited does not support connections - it has not been coded correctly.

In this case I was receiving the error because I placed the ConnectionProvider and ConnectionConsumer attributes and methods on the UserControl objects inside the Web Parts, rather than the Web Parts themselves.

share|improve this answer

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.