Footer Property

Returns the panel that contains the footer for the specified form. A footer must be defined as a template and chosen for the target device.

public Panel Footer {
   get
}

Example

The following example demonstrates how to use the Footer property to access the controls in the FooterTemplate.

Sub Form_Paginated(sender As Object, e As EventArgs)
   
   CType(myForm.Footer.FindControl("lblCount"), System.Web.UI.MobileControls.Label).Text = "Page no is " + myForm.CurrentPage.ToString()

End Sub

<mobile:form id="myForm" runat=server paginate=true 
   OnPaginated="Form_Paginated" >
   <DeviceSpecific>
      <Choice>
         <FooterTemplate>
           <mobile:Label runat="server" id="lblCount" />
         </FooterTemplate>
       </Choice>
   </DeviceSpecific>
</mobile:form>


[C#]
void Form_Paginated(object sender, EventArgs e)
{
   ((Label)myForm.Footer.FindControl("lblCount")).Text ="Page no is " + 
         myForm.CurrentPage;
}
<mobile:form id="myForm" runat=server paginate=true 
   OnPaginated="Form_Paginated" >
   <DeviceSpecific>
      <Choice>
         <FooterTemplate>
           <mobile:Label runat="server" id="lblCount" />
         </FooterTemplate>
       </Choice>
   </DeviceSpecific>
</mobile:form>

See Also

Applies to: Form Class