Adds a control to the dialog window.

Namespace:  C1.Web.UI.Controls.C1Window
Assembly:  C1.Web.UI.Controls.2 (in C1.Web.UI.Controls.2.dll)

Syntax

C#
public void AddControl(
	Control control
)
Visual Basic
Public Sub AddControl ( _
	control As Control _
)

Parameters

control
Type: System.Web.UI..::..Control
The control to be added.

Remarks

Takes effect if dialog works in UpdatePanel mode, when the ContentUrl property is empty.

Examples

The example shows how to add a control to a dialog window.
Copy CodeC#
Label l = new Lablel();
l.ID = "label1";
l.Text = "Search results:";
dialog.AddControl(l);

See Also