Sams Teach Yourself ASP.NET in 21 Days, Second Edition By Chris Payne
Table of Contents
Day 5. Beginning Web Forms
This workshop will help reinforce the concepts covered in today's lesson. Answers can be found in Appendix A.
How do Web forms keep track of viewstate?
What does the state bag do, and how do you access it?
True or false: Events in Web forms are processed before the Page_Load event.
What is the standard event parameter list?
What is the importance of the runat="server" tag?
Why should you use HTML server controls?
What's wrong with the following code snippet?
<asp:Button Click="HandleThis" >
Which property can be used to make a control post immediately to the server upon an event?
When should you use Web controls instead of HTML server controls?
Build an application for choosing a baby's name. The user will select the sex of the baby, and then a ListBox will display a few possible names. When the user selects a name, a message will be displayed using the selected name.
Build a standard user registration page with the following fields: name (required), address, phone (required), fax, and e-mail address (required). If any of the required values are missing, display an error message to the user.