WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

ASP Application Object


A gathering of ASP documents that cooperate to play out some reason is called an application. The Application object is utilized to tie these documents together.


Application Object

An application on the Web may comprises of a few ASP records that cooperate to play out some reason. The Application object is utilized to tie these records together.

The Application object is utilized to store and access factors from any page, much the same as the Session object. The distinction is that ALL clients share ONE Application object (with Sessions there is ONE Session object for EACH user).

The Application object holds data that will be utilized by numerous pages in the application (like database association data). The data can be gotten to from any page. The data can likewise be changed in one spot, and the progressions will consequently be reflected on all pages.

The Application item's accumulations, strategies, and occasions are depicted below:

Collections

Collection Description
Contents Contains every one of the things annexed to the application through a content command
StaticObjects Contains every one of the items annexed to the application with the HTML <object> tag

Methods

Method Description
Contents.Remove Deletes a thing from the Contents collection
Contents.RemoveAll() Deletes all things from the Contents collection
Lock Prevents different clients from altering the factors in the Application object
Unlock Enables different clients to alter the factors in the Application object (after it has been bolted utilizing the Lock method)

Events

Event Description
Application_OnEnd Occurs when all client sessions are finished, and the application ends
Application_OnStart Occurs before the principal new session is made (when the Application object is first referenced)