Implement the webpart communication function

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.