Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 4.x > Installation and deployment > Adding CMSWebPartZone tot a custom web part View modes: 
User avatar
Member
Member
eli.sack-diamonds - 11/12/2009 1:32:19 AM
   
Adding CMSWebPartZone tot a custom web part
Can I add a CMSWebPartZone to a custom web part that I developed? If yes how do I do this?

User avatar
Kentico Support
Kentico Support
kentico_radekm - 11/12/2009 3:23:35 PM
   
RE:Adding CMSWebPartZone tot a custom web part
Hello.

Well, theoretically you can use this control also in your custom web part, if you register appropriate assembly: <%@ Register Assembly="CMS.PortalControls" Namespace="CMS.PortalControls" TagPrefix="cc1" %> and then you can use this control as per following example: <cc1:CMSWebPartZone ID="XXX" runat="server" />

Best Regards,
Radek Macalik
Support Engineer

User avatar
Member
Member
eli.sack-diamonds - 11/15/2009 1:49:09 AM
   
RE:Adding CMSWebPartZone tot a custom web part
Sorry but this does not work all it gave me in the design mode is a black box also can someone please answer my thread her http://devnet.kentico.com/Forums/f36/t11242/Custom-Web-Part-Holds-UserControl-Problem.aspx

Thanks
Eli