NET page. For ASP.NET
AJAX pages, the Sys.Application class picks up where the Page class left off on the server
side. However, among other things, one big difference is that the client-side events of a
page as included in the Sys.Application class are a lot fewer than those offered in the
server-side Page class. In fact, there are only three events: init, load, and unload. Internally,
the Sys.Application classes map events of JavaScript??™s window object to these three
events. Table 4-11 lists these three events of the Sys.Application class.
Table 4-11. Events of the Sys.Application Class
Event Name Description
init Raised after scripts have been loaded and immediately before objects
are created
load Raised after scripts have been loaded and objects in the page have been
created and initialized
unload Raised right before all objects in the page are disposed of
Much like server-side ASP.NET, where Page_Load is the default event handler for the
server-side Load event, the Sys.Application class also provides default event handlers for
the client-side load and unload events.
Pages:
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129