Subscribe

RSS Feed (xml)

Configuring Automatic Paging of Content

The ASPX page is as follows:


<mobile:Form id="Form1" Paginate="true" runat="server">


<mobile:List id="List1" runat="server"></mobile:List>


</mobile:Form>


In


<script runat="server" /> block or codebehind:


Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)


If Not IsPostBack


Dim count AS Integer


For count = 1 To 100


Dim listItem = New MobileListItem(count.ToString())


List1.Items.Add(listItem)


Next


End If


End Sub


Comments


Because the screens of mobile devices are typically small and cannot display large


amounts of data,ASP.NET mobile controls provide the capability to automatically paginate


across large amounts of data by splitting them into multiple screens.The form control


is an example of a mobile control that contains this functionality.


By setting the Paginate property of the form control, you enable this capability.The


control automatically inserts navigation constructs that are appropriate for the device in


question.This enables the users to page back and forth between multiple screens of data.


The TextView, List, and the ObjectList controls also support internal pagination.

No comments:

Archives

Variety in the Web World