This documentation is archived and is not being maintained.

Form.Footer Property

Returns a panel that represents the footer for the form. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the Web site.

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

public Panel Footer { get; }

Property Value

Type: System.Web.UI.MobileControls.Panel
The Panel that represents the footer for the form.

The following code example demonstrates how to use the Footer property to access the contents of the FooterTemplate.

This example is from a larger example for the ControlToPaginate property.

void Form_Paginated(object sender, EventArgs e)
    // Set the background color based on 
    // the number of pages
    if (ActiveForm.PageCount > 1)
        ActiveForm.BackColor = Color.LightBlue;
        ActiveForm.BackColor = Color.LightGray;

    // Check to see if the Footer template has been chosen
    if (DevSpec.HasTemplates)
        System.Web.UI.MobileControls.Label lbl = null;

        // Get the Footer panel
        System.Web.UI.MobileControls.Panel pan = Form1.Footer;

        // Get the Label from the panel
        lbl = (System.Web.UI.MobileControls.Label)pan.FindControl("lblCount");
        // Set the text in the Label
        lbl.Text = "Page #" + Form1.CurrentPage.ToString();

In this example, since no filter is specified for the <Choice> element, it will always be the SelectedChoice. To specify a filter change the element to: <Choice Filter="isPocketIE"> and include a Web.config file that defines the filters you want to use.

<html xmlns="" >
<!-- The first Form -->
    <mobile:Form ID="Form1" Runat="server" 
        Paginate="true" OnActivate="Form_Activate" 
        <mobile:link ID="Link1" Runat="server" 
            Go To Other Form
        <mobile:Label ID="Label1" Runat="server">
            Welcome to ASP.NET
        <mobile:textview ID="txtView" Runat="server" />

        <mobile:DeviceSpecific ID="DevSpec" Runat="server">
                    <mobile:Label runat="server" id="lblCount" />


    <!-- The second Form -->
    <mobile:Form ID="Form2" Runat="server" 
        Paginate="true" OnPaginated="Form_Paginated">
        <mobile:Label ID="message2" Runat="server">
            Welcome to ASP.NET
        <mobile:link ID="Link2" 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.