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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.