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

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