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

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

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