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

What is a user developed application?

709


Are there any resources for drop-in replacements for the default css that comes with the ASP.NET Website template?

745


What are the disadvantages of asp.net?

785


Why is global asax is used?

800


How many types of validation are there?

706


How to sign out from forms authentication?

740


What is the viewstate in asp.net?

762


Can you dynamically assign a Master Page?

752


What is the biggest disadvantage of “Other Return Types” in Web API?

1142


1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5

1962


Do you support digital rights management to protect my videos?

625


Which is the parent class of the ASP.NET server control?

741


How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.

1660


What is smpte vc-1?

762


What is a master page and what does it do?

710