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 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.