Prev | Current Page 585 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"

This menu item is available because the WebPartPageController server
control dynamically reads what modes are supported by the WebPartManager control on the
page. Figure 10-5 shows the web form in Connect mode.
Figure 10-5. The Customer Info Web Part web form in Connect mode
After clicking Connect as shown in Figure 10-5, Figure 10-6 shows a screen shot of the
Create and Manage Connections functionality, as well as the Close Zone button to cancel out
creating a connection.
CHAPTER 10 ?–  OTHER S ERVER C ONTROLS 465
Figure 10-6. The Create and Manage Connections UI without any connections
Figure 10-7 shows the UI after clicking the ???Select a consumer??? link with the CustomerInvoices
web part selected for the To value.
Figure 10-7. The Create and Manage Connections UI after connecting the web parts
After clicking the Connect Controls button and selecting Browse mode in
WebPartPageController, the controls are now linked. Selecting a row in the CustomerList web
part filters the CustomerInvoices web part to invoices for the selected customer based on the
CustomerID passed via the web part connection, as shown in Figure 10-8 where CustomerID
BLAUS is selected and the customer??™s invoices display below in the CustomerInvoices web part.


Pages:
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597