- The Global.asax file, also known as the ASP.NET application file.
- Global.asax is an optional file that contains code for responding to application-level and session-level events raised by ASP.NET or by HTTP modules.
- It is placed at the root level of an ASP.Net application
- The Global.asax file can be used either for initializing the application and session state variables or clearing out the memory by destroying all such variables.
The Global.asax
file consists of following events that can be handled using it:
- Application_Init:
- Application_Start
- Session_Start
- Application_BeginRequest
- Application_EndRequest:
- Application_AuthenticateRequest
- Application_Error
- Session_End
- Application_End
Comments
Post a Comment