October 2010
Intermediate to advanced
1920 pages
73h 55m
English
UpdatePanel ControlsOne UpdatePanel can contain another UpdatePanel. You can nest UpdatePanels to your heart’s content, just like Russian nesting dolls.
Nesting UpdatePanel controls is useful when you want to control how much of a page gets refreshed during an asynchronous postback. Sometimes, you might need to update only a tiny portion of a page, and other times you might need to update the entire page.
For example, the page in Listing 38.6 contains two nested UpdatePanels. The outer UpdatePanel contains a DropDownList, FormView, and ListView control. The inner UpdatePanel contains only the ListView control (see Figure 38.6).
Figure 38.6. Page with nested UpdatePanel controls.
Listing 38.6. NestedUpdatePanels.aspx
When you ...
Read now
Unlock full access