O'Reilly logo

Learning ASP.NET 2.0 with AJAX by Dan Hurwitz, Jesse Liberty, Brian MacDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

BRAIN BUILDER

Quiz

  1. What is the reason for validation?

  2. What do you do if you want a button to post the page without checking validation?

  3. What is the best type of validator to use for a radio button list?

  4. What's the difference between the Static and Dynamic values of the Display property?

  5. Suppose the first item in your drop-down list is "Choose a payment method." How do you make sure users choose one?

  6. What's the benefit of using the ValidationSummary control?

  7. What control should you use to make sure the user can't order more of a single item than you actually have in stock?

  8. Suppose you run a hotel that requires at least two guests stay in a double room, but no more than five guests. What control should you use on the "Number of guests" field?

  9. How do you check that the user has entered a valid email address?

  10. Suppose your theme park offers discounts to customers between the ages of 6 and 12, and also customers over 65. What kind of control would you use to validate the customer is eligible for a discount, while still using a single age field?

Exercises

Exercise 5-1. In the exercises in this chapter, you're going to create a form that users can fill out if they want to participate in a friendly phone survey (I'm told some people like to get survey calls in the middle of dinner). To begin, create a page with a table with three columns: label, control, and validator. Then add text boxes for the user's name, address, city, state, and zip code. Be sure to add the appropriate validators for each field—don't ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required