Web part binding (obsolete) |
Web part binding allows you to connect two web parts. For example: you can have a web part containing drop-down list with countries. When some value is selected, it is provided to another web part that displays a list of company offices in the selected country. You can manage web part binding on the Binding tab:
Example - creating a product selection dialog with drop-down list and product list
In this example, we will create two web parts - selector and viewer and bind their properties so that the product viewer reflects the product selector status.
[C#]
Change the class inheritance like this:
Add the following code inside the page class: [C#]
The CMSRepeater web part displays the product list.
Switch to the code behind and add the following code to the beginning of the code: [C#]
Change the class inheritance like this:
Add the following code inside the page class: [C#]
When you change the drop-down list value, the product list below is automatically updated.
|