Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > web-part connections View modes: 
User avatar
Member
Member
cperras-uwb - 6/10/2010 1:56:24 PM
   
web-part connections
I'm trying to figure out the best way to share data between web-parts. I've been reading about web-part connections ("asp.net web parts in action"), and I tried using static connections with Kentico. This didn't work, probably because the web-parts are created dynamically. I haven't tried using dynamic connections (yet), and I worry that this might be difficult with Kentico (with its different view-states, workflow-states, etc).

Is there a "best-practice" method for sharing data between web-parts in Kentico?

thanks!!
--craig

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 6/14/2010 4:00:01 AM
   
RE:web-part connections
Hello,

Well, the webparts in Kentico CMS Portal engine model are a bit different thing from default ASP.NET webparts. Therefore, the best and the most reliable way in Kentico CMS is incorporating multiple controls within one webpart and manage their data and properties in the code-behind of this "shared" webpart. Please see more info about developing webparts in our Developer's Guide: http://devnet.kentico.com/docs/devguide/developing_web_parts.htm.

Other option would be managing data of the webparts on the page using our API, more precisely CMS.GlobalHelper -> RequestStockHelper class.

Hope it sheds more light.

Best regards
Ondrej Vasil