Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Regarding Connection between Custom Web Parts across pages

  Asked By: Dale    Date: Dec 13    Category: Sharepoint    Views: 2212

I am trying on Cross-Page Connection between two web parts which implements
InterfaceTypes.IParametersOutProvider,InterfaceTypes.IParametersInConsumer

and these two web parts are presented in two different pages
and I connected them usig sharepoint designer but ending up with the followin
exception

Web Part Error: You have attempted to manually set the Connections property of
this Web Part to connect to a Web Part on another page. However, one or both of
these Web Parts do not support the connection as it is currently defined. To
define connections between Web Parts across pages, use a Windows SharePoint
Services-compatible HTML editor, such as Microsoft Office SharePoint Designer.

Any idea where I went wrong
had anybody come across this error earlier
any suggestions are appriciated

these are the two articles from where I got the provider and consumer web parts
msdn2.microsoft.com/en-us/library/ms973441.aspx
msdn2.microsoft.com/en-us/library/ms973458.aspx

Share: 

 

4 Answers Found

 
Answer #1    Answered By: Dakota Shaffer     Answered On: Dec 13

Did you inherit both webparts from the
Microsoft.SharePoint.WebPartPages.WebPart instead of the one in
System.web? Only SharePoint webparts can connect  across a page
boundary.

 
Answer #2    Answered By: Ted Gilmore     Answered On: Dec 13

Yeah Both of these two web  parts are inherited from
Microsoft.Sharepoint.webpartpages.webpart only!!
and both were given True for allow cross page  conncetion parameter at the time
of regestring interface i.e

RegisterInterface("MyParametersOutProviderInterface", //InterfaceName
InterfaceTypes.IParametersOutProvider, //InterfaceType
WebPart.UnlimitedConnections, //MaxConnections
ConnectionRunAt.Server, //RunAtOptions
this, //InterfaceObject
"", //InterfaceClientReference
"Provide Parameters To", //MenuLabel
"Provides a font parameters to a consumer  Web Part.", //Description
true); //allowCrossPageConnection

Any idea  what went wrong.

 
Answer #3    Answered By: Monte Cooley     Answered On: Dec 13

Not sure if this is why, but you are using the old (Sharepoint 2003)
methodology for connections. Even if inheriting from the SharePoint
object model you should use the 2007 methodolgy.

Take a look at the following article that talks about the new connection
interface.

http://ablog.apress.com/?p=1300

 
Answer #4    Answered By: Guadalupe Bullock     Answered On: Dec 13

I will try this new methodlogy which you suggested

 
Didn't find what you were looking for? Find more on Regarding Connection between Custom Web Parts across pages Or get search suggestion and latest updates.




Tagged: