Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does ASAX stand for?

Tags:

There is a Global.asax file in the root of asp.net applications.

  • What is the reason behind the extension naming?
  • Can I create other files to use this extension? For what purpose?
like image 773
KOB Avatar asked Feb 17 '18 21:02

KOB


People also ask

What is asax file in C#?

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.

Why is global ASAX is used for?

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.

How do I open an asax file?

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++.


1 Answers

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

like image 99
Ivan Sivak Avatar answered Nov 15 '22 04:11

Ivan Sivak