You can specify the number of pages that the pager will display at one time. By default, it will display up to 10; however, there may be instances where you want it to display more pages or fewer pages, in which case you can set the PageButtonCount property to your desired amount.
In Design View
In the Properties window, set the C1Pager control's PageButtonCount property to a value; for this example, set it to "4".
In Source View
In Source view, add PageButtonCount = "[Value]"
to the <cc1:C1Pager>
tag. For this example, use PageButtonCount="4"
so that the markup looks as follows:
<cc1:C1Pager ID="C1Pager1" runat="server" PageButtonCount="4">
</cc1:C1Pager>
In Code View
To specify the page button count of a C1Pager in Code view, add the following code (which sets the PageButtonCount to "4") to the Page_Load event:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
C1Pager1.PageButtonCount = 4 |
To write code in C#
C# |
Copy Code
|
---|---|
C1Pager1.PageButtonCount = 4; |
This topic illustrates the following:
The following image illustrates a C1Pager control that will only display four pages at a time: