ComponentOne TabControl for ASP.NET AJAX: C1TabControl Elements

C1TabControl Elements

A C1TabControl is essentially a combination of a C1MultiPage and a C1TabStrip. A C1TabControl is used to display a collection of pages (represented by the C1TabPage class) one at a time. Navigation for a C1TabControl is handled by an integrated tabstrip.

 

Tabstrip

The C1TabControl tabstrip is used to navigate through the pages of the control. Each tab is associated with one C1TabPage. The tabstrip can be aligned to the top, bottom, left, or right of the control. For more information on aligning the tabstrip, see Changing the Direction of C1TabControl's Tabstrip. You can also make multiple tabstrip rows and columns using the ForceNewLine property (see Creating Multiple Tabstrip Rows). 

Tab Page

The tab page of the C1TabControl can hold formatted text. For more information about adding text to a C1TabControl, see Adding Text to a C1TabControl Tab Page.   

Using the ContentUrl property, you can set a tab page of a C1TabControl to display external content. See Displaying External Content in a Tab Page for more information.

Arbitrary controls can also be added to C1TabControl simply by declaring the server control within the C1TabPage tag. For example, the following markup adds the Button server control inside the first page of the C1TabControl:

 

<cc1:C1TabPage ID="C1TabPage01" runat="server">

    <asp:Button ID="Button1" runat="server" Text="Button" />

</cc1:C1TabPage>

 


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.