Workshop

IOTA^_^    

Sams Teach Yourself ASP.NET in 21 Days, Second Edition
By Chris Payne
Table of Contents
Day 7.  Validating ASP.NET Pages


This workshop will help reinforce the concepts covered in today's lesson. The answers can be found in Appendix A.

Quiz

1:

What are the five Validation controls?

2:

True or false: Validation controls are created on the client side.

3:

What two properties should every Validation control have?

4:

What does the clienttarget=downlevel parameter do?

5:

Assuming you have two server controls, tbName and tbAge, will the following validator work?

 <asp:CompareValidator runat="server"    ControlToValidate="tbName"    ValueToCompare="tbAge"    ErrorMessage="Error!"/> 
6:

What's the property you need to set for the CustomValidator control that specifies the event handler?

Exercises

[click here]

Build a login page similar to Listing 7.7, but build it into a user control. Handle all validation inside the user control, as opposed to the containing ASP.NET page.


    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