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 do you need to do to use a ScriptManager control?

  2. Which property of the ScriptManager control enables asynchronous postback?

  3. What control do you need to place on your page to enable asynchronous updates?

  4. Can you make a page that contains only an extender control?

  5. What property is common to all the AJAX extender controls?

  6. What view do you use to set the WatermarkText property?

  7. Can you use the TextBoxWatermarkExtender without style sheets?

  8. What's the advantage of using the PopupControlExtender?

  9. What method of the PopupControlExtender do you need to call to display the results?

  10. What standard control does the CollapsiblePanelExtender work with?

Exercises

Exercise 3-1. We'll start things off simply. Suppose you have a store that ships only to certain states in the Northeastern United States. In your order form, you want to restrict users to only those states as their shipping destination, so you want to use a drop-down list. You also want to save space on your form, though, so you want to hide that delivery list in a Panel with a PopupControlExtender. For this exercise, you'll only produce the part of the form where users would enter the shipping State. The finished form should look like Figure 3-16.

The drop-down list should contain just the six states shown in Figure 3-16. When the user chooses one of the states, the state's two-letter postal abbreviation should appear in the text box.

Exercise 3-2. Most of the AJAX control extenders that we've shown you in this chapter just ...

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