Form::PageCount Property

 

Returns the number of pages in the form after the form is paginated. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.

Namespace:   System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

public:
[BindableAttribute(false)]
[BrowsableAttribute(false)]
property int PageCount {
	int get();
}

Property Value

Type: System::Int32

The number of pages in the form after the form is paginated.

The Form control exposes the PageCount property and the CurrentPage property, which provide information about how the current form is paginated. The PageCount property also helps provide navigation capability to another page. For example, when rendering on a richer device, a search results form might include device-specific UI elements that allow the user to browse to a page of results by number rather than by link navigation.

System_CAPS_noteNote

This value is available after the Paginated event has occurred. To get the PageCount property, you can handle the Paginated event of the form.

The following code example demonstrates how to use the PageCount property of the Form control. This code example is part of a larger example for the ControlToPaginate property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: