WebPartInfoProvider GenerateWebPartCode Method (WebPartInfo, String, String , String , String )Kentico 8.0 API Reference
Generates the web part code.

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

wpi
Type: CMS.PortalEngine WebPartInfo
Web part info
baseControl
Type: OnlineSystem String
Base control nested within the web part
ascx
Type: OnlineSystem String 
Returning ASCX code
code
Type: OnlineSystem String 
Returning code behind
designer
Type: OnlineSystem String 
Returning designer file
See Also