Creating a Sample Page

The simplest way to get started with data binding is to display the contents of a single table in a DataGrid control. As you'll see, this requires very little effort on your part, at least, if your only goal is to simply display the data.

(Adding, editing, and deleting data require a bit more effort, and these topics are covered in Chapter 17, “Editing Data Using the DataGrid Control.”)

To get started, in this section you'll walk through building the sample page shown in Figure 11.1.

Figure 11.1. You'll build this page in the first part of this chapter.

The example involves these basic steps (all described in detail in the ...

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.