C# Class GSoft.Dynamite.WebParts.WebPartHelper

Class to manage WebParts, add WebPart to WebPartZone and other stuff
Mostrar archivo Open project: GSoft-SharePoint/Dynamite-2010 Class Usage Examples

Public Methods

Method Description
GenerateWebPartHtml ( SPWeb web, SPListItem item, string webPartName ) : string

Method to generate the html code to embed a web part in a Publishing Page Content

Private Methods

Method Description
AddWebPartToZone ( SPListItem item, System webPart, string webPartZoneName, int webPartZoneIndex ) : System.Guid
AddWebPartToZone ( SPWeb web, SPListItem item, string webPartName, string webPartZoneName, int webPartZoneIndex ) : System.Guid
CreateWebPart ( SPWeb web, string webPartName, SPLimitedWebPartManager manager ) : System.Web.UI.WebControls.WebParts.WebPart
GenerateWebPartHtml ( SPListItem item, System webPart ) : string

Method Details

GenerateWebPartHtml() public method

Method to generate the html code to embed a web part in a Publishing Page Content
public GenerateWebPartHtml ( SPWeb web, SPListItem item, string webPartName ) : string
web SPWeb the SPWeb
item SPListItem The item to set the web part to
webPartName string the name of the web part
return string