Home > Interview Questions > ASP.NET > What is Global.asax file in asp.net web application?

What is Global.asax file in asp.net web application?

by Thamil   on 04/10/2015   Category: ASP.NET   |  Level: Intermediate   |  Views: 921    |  Points: 25     |  Gold 

Global.asax is an asp.net application file where the global or application level events will occur and it is resides in the root directory of a web application. Global.asax file is optional file in a web application. Below is the list of application level events available in the global.asax file.

• Application_start- Occurs when the first user visits a page within your Web application.
• Application_End – Occurs when no more users of the application
• Session_Start – Occurs whenever a new user visits a page in the application
• Sessio_End – Occurs when the users stopped requesting any page in the application and their session times out.
• Application_Error – Occurs, when exception occurred in the application.
• Application_BeginRequest – Occurs beginning of each request to the server. I.e. request happen whenever user navigates to each page.
• Application_EndRequest – Occurs, at the end of each request.

« What is outputcache directive in asp.net?
» What is the difference between IS and AS operator in C#?
Post Question  |  Question Home

Recent Posts

User Responses

No response found, be the first to review this question.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts