The Application Object
The Application object canstore information for use by ASP.NET code, process requests, and respond to events. Table 4.1 gives the partial interface of the Application object.
Collection | Description |
---|---|
Contents | Contains all the items added to the application through script commands. |
staticobjects | Contains all the objects added to the application with the <OBJECT> tag. |
Methods | Description |
---|---|
Lock | Prevents other clients from modifying application properties. |
Unlock | Enables other clients to modify application properties. |
Events | Description |
---|---|
OnStart | Occurs when a page in the application is first referenced. |
OnEnd | Occurs when the application quits, after the Session_OnEnd event. |
Note that an ASP.NET ...
Get Special Edition Using® Microsoft® ASP.NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.