| WebPartInfoProviderGenerateWebPartCode Method (WebPartInfo, String, String, String, String) | 
            Generates the web part code.
            
 
Namespace: CMS.PortalEngineAssembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 9.0.0
Syntaxpublic static void GenerateWebPartCode(
	WebPartInfo wpi,
	string baseControl,
	out string ascx,
	out string code,
	out string designer
)
Parameters
- wpi
 - Type: CMS.PortalEngineWebPartInfo
Web part info - baseControl
 - Type: SystemString
Base control nested within the web part - ascx
 - Type: SystemString
Returning ASCX code - code
 - Type: SystemString
Returning code behind - designer
 - Type: SystemString
Returning designer file 
See Also