Chapter 17. Working with Data-Bound DropDownLists, RadioButtons, and CheckBoxes

<feature><title></title>

In this hour, we will cover

  • Populating the items of a drop-down list with the results from a database query

  • Creating check boxes and radio buttons based on the results of a database query

  • Using the DropDownList control to filter the contents displayed in a GridView

  • The benefits of using database information versus hard-coding drop-down list, check box, and radio button values

</feature>

As we’ve seen over the past three hours, the data source controls enable us to easily work with database data. We simply specify what table and columns we want to work with and whether we need corresponding INSERT, UPDATE, and DELETE statements. When a data source ...

Get Sams Teach Yourself ASP.NET 3.5 in 24 Hours, Complete Starter Kit now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.