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 2: Building Web Applications

Answers to Quiz Questions

  1. A postback is when the page is returned to the server to evaluate code handlers, and the same page is sent back to the browser afterward.

  2. The first type of postback in AJAX is synchronous, in which the entire page is sent back to the server, as with a non-AJAX page. The second type is asynchronous, in which only part of the page is updated, and the rest is unaffected.

  3. The ID property. The IDE sets this property for you (although you can change it), and you need it to refer to the control from elsewhere on the page.

  4. Use a TextBox control with the TextMode property set to Password.

  5. Use a ListBox control, which allows multiple selections and is best for long lists.

  6. Set the GroupName property of each radio button to the same group.

  7. A Panel control groups other controls together in one place, and enables you to make all the controls visible or invisible as a whole.

  8. The SelectedItem property retrieves the Text property of the currently selected item of the control.

  9. Set the control's Visible property to false. The control will be present, but won't be rendered until something changes the Visible property.

  10. Set the HyperLink control's Target property to _blank.

Answers to Exercises

Exercise 2-1. This exercise isn't too tricky; you're just getting used to adding controls to the page, and seeing how nested UpdatePanel controls work. If the labels aren't updating independently of each other, make sure you have the buttons and labels inside ...

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