Export (0) Print
Expand All

Panel.Paginate Property

Gets or sets a Boolean value indicating whether or not to paginate the Panel control. 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 virtual bool Paginate { get; set; }
<asp:Panel Paginate="True|False" />

Property Value

Type: System.Boolean
true to paginate the Panel; otherwise, false.

The Paginated event is raised after form pagination occurs.


Even if the Paginate property is set to false, pagination can still occur if a form's ControlToPaginate property is set.


To allow pagination in a Panel control within a form, you must set Paginate to true in both the form and the panel.

The following code example, when viewed on a device that paginates the pages, shows how a panel containing more controls than will fit on one page is paginated to allow users access to all items on the panel.


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

<%@ Page Language="C#" 
    Inherits="System.Web.UI.MobileControls.MobilePage" %>
<%@ Register TagPrefix="mobile" 
    Assembly="System.Web.Mobile" %>

<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
        System.Web.UI.MobileControls.Label lab;

        for (int i = 1; i < 16; i++)
            lab = new System.Web.UI.MobileControls.Label();
            lab.Text = i.ToString() + 
                " - This sentence repeats over and over.";
        Form1.Paginate = true;
        Panel1.Paginate = true;

<html xmlns="http://www.w3.org/1999/xhtml" >
    <mobile:form id="Form1" runat="server">
        <mobile:Panel ID="Panel1" Runat="server">

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

© 2014 Microsoft