Connected Web Parts and IWebPartParameters


Hi

I'm trying to get a pair of connected web parts working in WSS 3.0 the data
that needs to flow between the parts is three boolean values and a string.
After doing some reading it seemed that the best way to go about this would
be to use the IWebPartParameters interface.

I managed to find a couple of useful articles on how to go about
implementation of this interface should be done. http://www.ftponline.com/vsm/2006_02/magazine/columns/gettingstarted/default.aspx
http://ablog.apress.com/ p=1331#more-1331

So I followed those as best I could and ran into a BIG problem......

The Schema property defined in IWebPartParameters requires a that the schema
be of type TypeDescriptorCollection which implements IDictionary. Now classes
which implement IDictionary are not XmlSeralizable by default, and apparently
our Microsoft.SharePoint.WebPartPages.WebPart need to be XmlSerializable to
work properly yet nothing I've read regarding the IWebPartParameters
interface talks about rolling a custom XmlSerializer or even mentions that
this could be an issue.

Does anyone have any suggestions

Thanks


Answer this question

Connected Web Parts and IWebPartParameters

  • Connected Web Parts and IWebPartParameters