WebPartInfoProvider GenerateWebPartCode Method (Int32, 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

webpartId
Type: OnlineSystem Int32
Web part ID
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
See Also