O'Reilly logo

Build Your Own ASP.NET 4 Web Site Using C# & VB, 4th Edition by Cristian Darie, Wyatt Barnett, Timmothy Posey

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

Chapter 11Managing Content Using GridView and DetailsView

In the previous chapters, you learned some of the important concepts surrounding data access and presentation. You learned that when connecting to a database, you have to establish a connection using the SqlConnection class. You also learned that in order to retrieve data from the database table, you must write an SQL statement within a command using the SqlCommand class. You discovered that we use the SqlDataReader class to place the database records into a virtual container of some sort. Finally, you learned that presenting the data within the SqlDataReader was simply a matter of binding the SqlDataReader to a data control such as the Repeater or DataList controls.

Here, we’ll learn ...

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