The webpart controls on a page are independent of each other. Depending on the communication mechanism, we can implement webpart communication based on static connections and dynamic connections.
One side serves as the provider and the other side serves as the consumer between the communication webpart controls. The data interaction between them is managed by webpartmanager. On the same page, there can be many-to-many communication. The same provider can communicate with multiple consumers, but one consumer can only obtain data from one provider.
How to Implement webpart communication:
(1) define interfaces
(2) Implementation interface member
(3) Implement the [connectionprovider] Method in the provider
(4) Implement the [connectionconsumer] Method in consumer
(5) declare static connections in webpartmanager
For dynamic-connection-based webpart communication, you do not need to declare a static connection in webpartmanager and add a connectionszone.