Global.asax

Default Image

Describe “global.asax” and Application Object in ASP.

Global.asa


The Global.asa file is an optional file
that can contain declarations of objects, variables, and methods that
can be accessed by every page in an ASP application. All valid browser
scripts (JavaScript, VBScript, JScript, PerlScript, etc.) can be used
within Global.asa.


The Global.asa file can contain only the following:


Application events


Session events


Methods


Contents.Remove            Deletes an item from the Contents collection


Contents.RemoveAll()    Deletes all items from the Contents collection


Lock       Prevents other users from modifying the variables in the Application object


Unlock Enables other users to modify the variables in the Application object (after it has been locked using the Lock method)


Events


Application_OnEnd         Occurs when all user sessions are over, and the application ends


Application_OnStart       Occurs before the first new session is created (when the Application object is first referenced)

To get code for above problem click on this link

Read Count: 3 times

Comments

No comments yet.

Leave a Comment