Workshop

IOTA^_^    

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.

Quiz

1:

How do Web forms keep track of viewstate?

2:

What does the state bag do, and how do you access it?

3:

True or false: Events in Web forms are processed before the Page_Load event.

4:

What is the standard event parameter list?

5:

What is the importance of the runat="server" tag?

6:

Why should you use HTML server controls?

7:

What's wrong with the following code snippet?

 <asp:Button     Click="HandleThis" > 
8:

Which property can be used to make a control post immediately to the server upon an event?

9:

When should you use Web controls instead of HTML server controls?

Exercises

1:

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.

2:

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.


    IOTA^_^    
    Top


    Sams Teach Yourself ASP. NET in 21 Days
    Sams Teach Yourself ASP.NET in 21 Days (2nd Edition)
    ISBN: 0672324458
    EAN: 2147483647
    Year: 2003
    Pages: 307
    Authors: Chris Payne

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net