Accessing Data Using Listing Controls
Accessing databases is commonly done to retrieve and display data in a Web application. As with all other Microsoft ASP.NET Web applications, an ASP.NET mobile Web Forms application can easily access databases for the same purposes.
Mobile Web Forms provide three mobile controls, List SelectionList, and ObjectList that you can use to display a large quantity of data from a database.
In This Section
This section describes how you can bind data to these controls.
- Creating an Object for a List from a Collection Element
Describes how a List control constructs a MobileListItem from an element in the collection and how to handle the selected item. - Data Binding a List or SelectionList Control
Describes how the List and SelectionList mobile controls render a view of data and provide interaction with data items. - Data Binding and Viewing Data Using an ObjectList Control
Describes how to use the ObjectList mobile control to provide a more versatile view of data. - Differences Between ObjectList and List Controls
Provides a table detailing how the ObjectList control differs from the List control. - Differences Between the SelectionList and List Classes
Describes the differences in functionality between the SelectionList and List classes. - SelectionLists and Postbacks
Describes how to send responses through postbacks when using SelectionList controls. - SelectionLists and Index Values
Describes how SelectionLists use index values to reference items in a list.
Related Topics
For more information about data access, consult the following ASP.NET topics:
- Accessing Data with ASP.NET
Discusses how to access a SQL database. - Accessing Data with ADO.NET
Discusses the architecture of, and how to program with, ADO.NET. - Inserting Data Into a SQL Database
Provides a sample program that adds new rows of data to a SQL database.