Tabs for ASP.NET WebForms
Adding Tab Pages to the C1Tabs Control
Task-Based Help > Adding Tab Pages to the C1Tabs Control

This topic illustrates how to add tab pages to a C1Tabs control in Design view, in Source view, and in code.

In Design View

Complete the following steps:

  1. Click the smart tag to open the C1Tabs Tasks menu. Select C1Tabs.SmartTag.Designer
    The C1Tabs Designer Form dialog box opens.
  2. Click the Add Child Item Button to add a C1TabPage to the C1Tabs
  3. Click OK to close the C1Tabs Design Form dialog box.

In Source View

Add the following markup between the <cc1:C1TabPage> tags:

To write code in Source View

<cc1:C1TabPage ID="Tab1" runat="server" Text="Tab1">  
</cc1:C1TabPage>

In Code

Complete the following steps:

  1. Import the following namespace into your project:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    Imports C1.Web.Wijmo.Controls.C1Tabs
    

    To write code in C#

    C#
    Copy Code
    using C1.Web.Wijmo.Controls.C1Tabs;
    
  2. Add the following code to the Page_Load event:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    Dim TabPage1 As New C1TabPage()
    TabPage1.Text = "TabPage1"
    C1Tabs1.Controls.Add(TabPage1)
    

    To write code in C#

    C#
    Copy Code
    C1TabPage TabPage1 = new C1TabPage();
    TabPage1.Text = "TabPage1";
    C1Tabs1.Controls.Add(TabPage1);
    
See Also