Home »

What are the main event handlers in Global.asax?

Question ListCategory: .NETWhat are the main event handlers in Global.asax?
milleranthony7 author asked 9 years ago
1 Answers
jessica537 author answered 8 years ago

ASP.NET provides several modules that participate in each request and expose events you can handle in

Global.asax. You can customize and extend these modules as you like, or develop completely new

custom modules to process information for and about HTTP requests made to your ASP.NET-based

application. Following are important events catered for in the Global.asax file.

? Application_Init: Fires when the application initializes for the first time.

? Application_Start: Fires the first time an application starts.

? Session_Start: Fires the first time when a user’s session is started.

? Application_BeginRequest: Fires each time a new request comes in.

? Application_EndRequest: Fires when the request ends.

? Application_AuthenticateRequest: Indicates that a request is ready to be authenticated.

? Application_Error: Fires when an unhandled error occurs within the application.

? Session_End: Fires whenever a single user Session ends or times out.

? Application_End: Fires when the application ends or times out (Typically used for application

cleanup logic).

Please login or Register to Submit Answer