What is the purpose of global.asax in asp.net

前端 未结 6 640
无人及你
无人及你 2020-12-12 10:19

How can we use global.asax in asp.net? And what is that?

6条回答
  •  余生分开走
    2020-12-12 11:04

    Global.asax is the asp.net application file.

    It is an optional file that handles events raised by ASP.NET or by HttpModules. Mostly used for application and session start/end events and for global error handling.

    When used, it should be in the root of the website.

提交回复
热议问题