Hour 11. Collecting Input by Using Drop-down Lists, Radio Buttons, and Checkboxes

In the previous hour we saw how to collect user information through the TextBox Web control. There are often times, though, when the textbox is not the most suitable means for collecting a particular piece of input. For example, imagine that you wanted to create a Web page where the user answered a bunch of yes/no questions. Would it make sense to use a TextBox Web control for these yes/no questions?

Fortunately, there are alternative Web controls for collecting user input, such as the DropDownList Web control, the RadioButton Web control, and the CheckBox Web control. We will examine these three Web controls in this hour.

Specifically, in this hour we will discuss ...

Get SAMS Teach Yourself ASP.NET in 24 Hours now with O’Reilly online learning.

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