Form.ControlToPaginate Property

Gets or sets the control on the form that can be paginated. The default is a null reference (Nothing in Visual Basic) (Nothing in Visual Basic).

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

[BindableAttribute(false)] 
public:
property Control^ ControlToPaginate {
	Control^ get ();
	void set (Control^ value);
}
/** @property */
public Control get_ControlToPaginate ()

/** @property */
public void set_ControlToPaginate (Control value)

public function get ControlToPaginate () : Control

public function set ControlToPaginate (value : Control)

Not applicable.

Property Value

The control on the form that can be paginated.

The ControlToPaginate property is used to allow a single control on a form to paginate its contents across several views on mobile devices and providing next and previous navigation between views. A control can paginate its contents even if a containing Panel control has its Paginate property set to false.

The following code example demonstrates how to use the ControlToPaginate property of the Form class to specify which control to paginate.

The example creates a page with two forms. One form has a very long string that on some devices must be paginated to give the user access to the entire text. In order to see the pagination in action, you must view the example on a device that handles pagination. In Visual Studio 2005, you can use one of the device emulators available with the Device Emulator Manager on the Tools menu.

NoteNote:

The following code example uses the single-file code model and may not work correctly if copied directly into a code-behind file. This code example must be copied into an empty text file that has an .aspx extension. For more information, see ASP.NET Web Page Syntax Overview.

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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1

Community Additions

ADD
Show: