Hour 8. Using the DataReader and DataAdapter

In Hour 6, “Retrieving Data from the Data Source,” you saw how to use ADO.NET to connect to a data source, fetch some records, place them into a DataSet using the DataAdapter, and display them on a Web form. In this hour, you'll see an alternative—and in many instances more efficient—method of retrieving data. Specifically, in this hour, you'll learn how to

  • Bind the DataReader object to Web controls

  • Step through the results of a DataReader object

  • Determine when to use a DataAdapter versus a DataReader

Get Sams Teach Yourself ADO.NET in 24 Hours 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.