Working with the ObjectList Control

The ObjectList control allows you to bypass a lot of work you would otherwise have to do yourself. Once you've set the appropriate properties and have bound the control to some data source, the control can display both a table and a details view of your data. You supply the fields to be displayed in the table view as well as the exact information and formatting you want to use in details view, and the control does its work.

In this example, the goal is to display customer IDs and phone numbers in the table view and list complete information in the details view. This requires nothing more than setting a few properties.

Follow these steps to add the fourth form to your page:

1.
Click to the right of frmCity ...

Get ASP.NET Developer's JumpStart now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.