Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Web Part Binding using custom code View modes: 
User avatar
Member
Member
sean.kinley-techfringe - 2/17/2010 9:19:25 AM
   
Web Part Binding using custom code
I've read in the documentation that Web Part Binding is obsolete and that one of the better methods is to use custom code. Are you able to provide or direct me to a practical example of some custom script. Like your example in the documenation, I simply want to pass the value from a drop down in one web part to drive results in another. Thanks in advance.

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 2/22/2010 11:17:16 AM
   
RE:Web Part Binding using custom code
Hi Sean,

You can put both web parts into one user control and ensure binding in code-behind of this user control or you can also put dropdown list and control that display the results into one web part.

Alternatively you can pass value selected in dropdownlist to page with second web part in query string and use query macro to set the value into property of second web part (or read and set query string value in code-behind of second web part). We use similar approach with Search Box and Search Results web parts.

Best Regards,

Martin Dobsicek