What is the role of global.asax?

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 ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where is the view state data stored?

585


How do cookies work? Give an example of their abuse.

554


Explain about solution explorer window?

632


Explain different authentication modes in asp.net?

558


How many types of server controls do we have?Also explain differance between them taking an example of ASP.NET?

2374






By default, Web API sends HTTP response with which of the following status code for all uncaught exception?

979


What is GAC in ASP.NET 2.0

601


What are validator? Name the validation controls in asp.net? How do you disable them?

560


Why is asp.net so popular?

517


What is the concept of view state in asp.net?

570


What is gridview in asp.net?

524


Explain the different parts that constitute ASP.NET application?

575


What is the difference between system.stringbuilder and system.string

272


What is a page life cycle? What are the events in a page life cycle?

499


What are ASHX files?

607