Q&A

Q1:If I use a DropDownList or series of RadioButton Web controls to let the user choose one option from, say, 50 legal choices, does this mean I have to enter all 50 choices by hand?
A1: With what you know now, the answer is yes. In Hour 17 we will examine how to populate the DropDownList Web control with data from a database. Furthermore, we will see how to create a series of radio buttons from database data by using the RadioButtonList Web control.
Q2:I have created a DropDownList with 10 list items on an ASP.NET Web page. Now I want to provide this exact same DropDownList Web control on a different ASP.NET Web page. Obviously, I can accomplish this by creating a new DropDownList Web control on the second page and reentering the 10 options ...

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.