Why Global.asax is used?

Answer Posted / abhishek maitrey

Global.asax is a file, as the name suggests that resides in
the root directory (in the global area) of your
application. It is inaccessible over the web but is used by
the ASP.NET application if it is there. It is a collection
of event handlers that you can use to change and set
settings in your site. The events may occur from one of two
places - The HTTPApplication object and any HTTPModule
object that is specified in web.config or machine.config.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can viewstate be accessed in another page?

511


Where is http session stored?

503


What is difference between web api and web services?

537


What is the good practice to implement validations in aspx page?

638


What is data control in asp.net?

524






What are the Types of authentications in IIS

601


Define dll hell?

631


What is asp.net and its advantages?

551


How do you deploy your asp.net application?

540


Explain method to handle error using HttpError in Web API?

585


What is a web api?

555


Explain a program using code nuggets to create a simple application? : asp.net mvc

514


Why do we use sessions?

580


What is application state?

518


What is Web Server Control Templates.?

588