SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 116 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

NET AJAX. If you inspect the individual JavaScript files that are dynamically
generated and loaded on the browser by the ScriptManager, you??™ll see references to the Sys
namespace. With that said, let??™s start by talking about the page life cycle and the
Sys.Application class.
Sys.Application
The Sys.Application class is an integral part of an ASP.NET AJAX page. After the initial
load of resources, including script files and other rendered components, from the server
onto the client, the Sys.Application class then manages the page life cycle. In fact, if you
view the source of any ASP.NET AJAX page, you would find the following script near the
bottom of the page:

CHAPTER 4 ?–  ASP.NET AJAX CLIENT LIBRARIES 67
The call to the initialize() method, as the name suggests, initializes an instance of
the Application class by raising the load event, which then resides on the browser for the
remainder of the application life cycle. Therefore, the role and function of the Application
class is analogous to the role of the Page class in a typical ASP.


Pages:
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128