Asp.net Ajax SYS. Application class

Source: Internet
Author: User
Event
SYS. application. init : The script is loaded, before the object is created.
SYS. application. Load Script Loading. The object is created and initialized. pageload ()
SYS. application. Unload Pageunload () occurs in window. Unload ()

Init eventBrowser-basedWindow. onloadEvent,

Triggered only when the page is initialized for the first time. It is used to establish a reference relationship between components.
The load and unload events of the Application Object do not need to be explicitly bound to bind an event processor function to these events. Instead, you can directly use the reserved keywords pageload and pageunload to create corresponding functions.

Method
SYS. application. addcomponent ()
SYS. application. Dispose ()
SYS. application. findcompont ()Returns the specified component object.
Shortcut $ find ()
SYS. application. getcomponents ()
SYS. application. initialize ()
Application initialization can occur only one time in the page life cycle. Any subsequent callto initialize just call the raiseload method.

SYS. application. policyscriptloaded ()Notifies scriptmanager that a script has been loaded.
SYS. application. queuescriptreference ()
SYS. application. raiseload ()
SYS. application. registerdisposableobject ()Register an app object that requires dispose
SYS. application. removecomponent ()
SYS. application. unregisterdisposeableobject ()
SYS. application. iscreatingcomponents(Property)

------------------------------- Event attributes ----------------------------
SYS. applicationloadeventargsClass
Provides a specialized event arguments collection for the load event of the application class.
All components created when the last load event of components (property) occurs
Whether ispartialload (property) is partially refreshed

------------------------------- Order of event triggering on the page --------------------
-> Loading page for the first time
APP: Application init. [Application initialization]
APP: application load. [application load] (ispartialload = false) [whether to partially refresh]
Page: load. [page loading]

-> Triggered without refreshing

PRM: initializing async request. [initialize asynchronous request]
PRM: Begin processing async request. [start to process asynchronous requests]
PRM: Loading results of async request. [loading the result returned by the asynchronous request]
--> [Updatepanel being updated] panelsupdating = 1 (nestedpanel)
--> [Updatepanel being deleted] panelsdeleting = 0
PRM: Finished loading results of async request. [The result of loading an asynchronous request is completed]
--> [Updatepanel updated] panelsupdated = 1 (nestedpanel)
--> [Updatepanel created] paneslcreated = 0
APP: application load. [application load] (ispartialload = true) [whether to partially refresh]
Page: load. [page loading]
PRM: End of async request. [end of an asynchronous request]

-> Disable page

Page: Unload. [unmount the Page]
APP: Application unload. [uninstall application]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.