Hour 17. Working with Data-Bound DropDownList, RadioButton, and CheckBox Web Controls

In the past two hours, you were introduced to a new ASP.NET Web control, the DataGrid, which is designed to display database data. By default the DataGrid essentially mirrors the structure of a database table in an HTML <table> tag, with an HTML <table> column for each field in the database table and an HTML <table> row for each record in the database table. Of course, the DataGrid allows for a large degree of customization, as we saw in the previous hour, “Further DataGrid Examples.”

Recall that the first example we looked at in the previous hour involved allowing the user to enter the CustomerID in a TextBox Web control. Upon doing so and submitting the form, ...

Get SAMS Teach Yourself ASP.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.