UpdatePanel Server-Side Page Execution Life Cycle

You need to understand that a server-side page goes through its normal page execution life cycle when you perform an asynchronous postback. The Page PreInit, Init, Load, and PreRender events are raised for an asynchronous postback in just the same way as these events are raised for a normal postback.

The page in Listing 38.10 logs each server event and displays the log in a BulletedList control (see Figure 38.8).

Figure 38.8. Viewing an asynchronous postback’s server lifecycle.


Listing 38.10. ServerLifecycle.aspx

When you first open the page in Listing 38.10, each page event is listed in the ...

Get ASP.NET 4 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.