Summary

In this hour we examined three Web controls commonly used to collect user input: the DropDownList, RadioButton, and CheckBox Web controls. These Web controls are typically used when the user's input is restricted to either a set of available options or just one of two options. For example, a DropDownList Web control can present all the time zones in the world, from which the user can choose only one. Another example is using a CheckBox Web control to ask a yes/no question, which is common in online surveys.

We saw that the DropDownList Web control has a number of list options out of which the user can select one. When adding a DropDownList Web control to an ASP.NET Web page, we need to explicitly specify those list items that should appear ...

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.