Adds the Web part to the page.

Namespace: MonoSoftware.MonoX.Utilities
Assembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)

Syntax

C#
public static void AddWebPartToPage(
	WebPart webPart,
	string path,
	HttpContext context,
	string copiedWebPart
)
Visual Basic
Public Shared Sub AddWebPartToPage ( 
	webPart As WebPart,
	path As String,
	context As HttpContext,
	copiedWebPart As String
)
Visual C++
public:
static void AddWebPartToPage(
	WebPart^ webPart, 
	String^ path, 
	HttpContext^ context, 
	String^ copiedWebPart
)
F#
static member AddWebPartToPage : 
        webPart : WebPart * 
        path : string * 
        context : HttpContext * 
        copiedWebPart : string -> unit 

Parameters

webPart
Type: System.Web.UI.WebControls.WebParts..::..WebPart
Web part to add
path
Type: System..::..String
Path of the destination page
context
Type: System.Web..::..HttpContext
Current HTTP context
copiedWebPart
Type: System..::..String
Copied Web part

See Also