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

Chapter 3: Snappier Web Sites with AJAX

Answers to Quiz Questions

  1. Nothing—when you create an AJAX-enabled web site, the ScriptManager control is included on your page by default.

  2. The EnablePartialRendering property is the critical property of the ScriptManager control, which is why it is set to True by default.

  3. The UpdatePanel control is the key control that enables asynchronous updates.

  4. No, you can't. The extender controls need to have a target control to extend; they don't work alone.

  5. All the Extender controls have a property called TargetControlID, which indicates the control that the extender acts on.

  6. You have to set the WatermarkText property from Source view; it's not visible from Design view.

  7. Yes; style sheets aren't necessary to use TextBoxWatermarkExtender; they're just a nice touch.

  8. It allows you to hide choices for a control within an UpdatePanel, saving valuable screen space.

  9. The Commit() method is the method of the PopUpControlExtender that causes the target control to display the results.

  10. A CollapsiblePanelExtender, logically enough, lets you expand or collapse a Panel control.

Answers to Exercises

Exercise 3-1. Start by creating a web site called Exercise 3-1; be sure to select ASP. NET AJAX-Enabled Web Site from the New Web Site dialog box. When the new web site opens, type in "Shipping State," and add a TextBox control called txtState. Set its Text property to "Click Here," its ReadOnly property to True, and its Width property to 70 px. Those are the controls the user will ...

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