Why is Global.asax used?
Options
- Declare Global variables
- Implement application and session level events
- No use
Answers
Answered by
2
Answer:
global success is the answer please mark me as brainlist
Answered by
0
Global asax
Explanation:
- Application Start, Application End, Session Start, Session End, and other higher-level application events are handled by Globalasax, which is an optional file.
- ASPNET Application File is another name for it. An ASPNET-based application's root directory contains this file. Globalasax contains a Class that represents your entire application.
- This file can be included in an ASPNET application's bin directory as an assembly. The Globalasax file is set up to refuse requests for the file if they come from a user.
- The instruction written within it is not available for download or viewing by outside users.
- ASPNET does not require asax to run a website. However, it comes in handy for application-level functionality (like unhandled exception logging).
- It will work properly if you include Globalasax to the website project. asax file is analysed and compiled into a HttpApplication-extending class.
- Global. asax effectively allows you to create program that runs in reaction to "system level" events, such as the application starting, a session terminating, or an application fault occurring, without having to cram it into every page of your site.
Similar questions