There is a Global.asax
file in the root of asp.net applications.
asax file is a special file that contains event handlers for ASP.NET application lifecycle events. The route table is created during the Application Start event. The file in Listing 1 contains the default Global. asax file for an ASP.NET MVC application.
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.
Microsoft's Visual Studio software can open ASAX files. Since ASAX files are just text files that contain code, you can use any text editor to open them. Windows has the Notepad application built-in to the OS that can open the file, but so can third-party text editors like the free Notepad++.
Global.asax
extension stands for:
Active Server Application Extended
..and it has only one purpose, as stated in docs:
.. is an optional file that contains code for responding to application-level events raised by ASP.NET or by HttpModules
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With