Creating a C1Dialog control in code is an easy process. In this topic, you will add a PlaceHolder control to the page, add an import statement, customize the C1Dialog control, and add the control to the PlaceHolder.
Complete the following steps:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Imports C1.Web.Wijmo.Controls.C1Dialog |
To write code in C#
C# |
Copy Code
|
---|---|
using C1.Web.Wijmo.Controls.C1Dialog; |
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
'Create a new C1Dialog Dim C1D As New C1Dialog() 'Set the control's size C1D.Height = 200 C1D.Width = 200 'Add the control to the PlaceHolder PlaceHolder1.Controls.Add(C1D) |
To write code in C#
C# |
Copy Code
|
---|---|
//Create a new C1Dialog C1Dialog C1D = new C1Dialog(); //Set the control's size C1D.Height = 200; C1D.Width = 200; //Add the C1Dialog to the PlaceHolder control PlaceHolder1.Controls.Add(C1D); |