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 a postback?

  2. What are the two types of postbacks in AJAX, and what is the difference between them?

  3. What property is found on every control?

  4. What control would you use to have the user enter a password, but keep the text hidden?

  5. What control would you use if you have a list of 20 items, and the user can select as many as they want?

  6. How do you make single radio buttons mutually exclusive?

  7. What can you use a Panel control for?

  8. What does the SelectedItem property retrieve?

  9. How do you include a control on the page, but not render it?

  10. What do you do to make the target of a HyperLink control open in a new window?

Exercises

Exercise 2-1. Now that you've played with HelloWorld, you're going to make a change to the Postbacks example, so you can see how flexible the UpdatePanel control is. Open the Postbacks web site, similar to how you opened HelloWorld in the previous exercise. In Design view, drag another UpdatePanel control inside the first one, after the button. Drag another Label control inside the new UpdatePanel. In the Properties window, set the label's name to lblOtherPartialUpdate, and set its width to 200px. (Note that you can't give this label the same name as the other label—or any other control on the page—or you'll get an error.) Now add another Button to the new UpdatePanel, under the label, set its name to btnOtherPartialUpdate, and change the text to "Another partial-page update:".

Now you need the event handler for your new button, so double-click it, and you'll ...

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