ComponentOne MultiPage for ASP.NET AJAX: C1MultiPage Elements

C1MultiPage Elements

The C1MultiPage control is used to display a collection of pages. The pages are viewed one at a time, allowing your page to hold a lot of content without wasting screen real estate. The pages are represented by the C1PageView class. Each page can be navigated using the optional navigational buttons.

 

Page

Pages of a C1MultiPage control can hold formatted text. For more information about adding text to a C1Multipage, see Adding Text to a Page.   

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

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

 

<cc1:C1PageView ID="C1PageView01" runat="server">

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

</cc1:C1PageView>

 

For help on adding arbitrary controls to the C1MultiPage, see Adding Arbitrary Controls to a Page.

Toolbar

 

The toolbar consists of two elements: a set of navigation buttons and a page index. When the ShowToolBar property is set to True, the First, Previous, Next, and Last buttons appear near the bottom-left of the C1MultiPage control, while the page index appears on the bottom-right. You can remove the page index by setting the ShowPageIndex property to False (see Removing the Toolbar's Page Index).   

If you prefer, you can add tabbed navigation to the C1MultiPage control by using it in conjunction with the C1TabStrip control (see Using a C1TabStrip for Navigation). You can also use arbitrary controls, such as buttons, for C1MultiPage navigation. See Using Arbitrary Buttons for Navigation and Selecting C1PageViews by ID for more information.


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