This topic illustrates how to specify the number of pages that a C1Pager contains.
In Design View
To specify the page count of a C1Pager in Design view, set the C1Pager control's PageCount property to a value. For this example, set it to "12".
In Source View
To specify the page count of a C1Pager control in Source view, add the PageCount property to the <cc1:C1PagerStep>
tag. For this example, use PageCount="12"
so that the markup appears as follows:
<cc1:C1Pager ID="C1Pager1" runat="server" PageCount="12">
</cc1:C1Pager>
In Code View
To specify the page count of a C1Pager in Code view, add the following code (which sets the PageCount to 12) to the Page_Load event:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
C1Pager1.PageCount = 12 |
To write code in C#
C# |
Copy Code
|
---|---|
C1Pager1.PageCount=12; |
This topic illustrates the following:
The following image shows a C1Pager control with its PageCount property set to "12":
Observe that only 10 pages and an ellipses button appear on the control. If you click the ellipses button, the last two pages will come into view:
To learn how to display all 12 pages, see Specifying the Number of Displayed Pages.