O'Reilly logo

ASP.NET Developer's JumpStart by Ken Getz, Paul D. Sheriff

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required