kentico_zdenekc
-
2/15/2011 4:32:37 PM
RE:Adding a webpart programmatically
Hi,
Sure, it's possible using our API, mostly by creating new instance of WebPartInfo and using WebPartInfoProvider methods to save that new webpart.
Comprehensive illustration of the API usage can be found in code of controls for adding webparts in Site manager. They are located in:
~\CMSModules\PortalEngine\UI\WebParts\Development\WebPart_New.aspx.cs and related codefiles.
Hope this will help.
Regards, Zdenek
|