Answer Posted / amrit sidhu
The Global.asax file, sometimes called the ASP.NET
application file, provides a way to respond to application
or module level events in one central location. You can use
this file to implement application security, as well as
other tasks.
The Global.asax file is in the root application directory.
While Visual Studio .NET automatically inserts it in all
new ASP.NET projects, it's actually an optional file. It's
okay to delete it—if you aren't using it. The .asax file
extension signals that it's an application file rather than
an ASP.NET file that uses aspx.
The Global.asax file is configured so that any direct HTTP
request (via URL) is rejected automatically, so users
cannot download or view its contents. The ASP.NET page
framework recognizes automatically any changes that are
made to the Global.asax file. The framework reboots the
application, which includes closing all browser sessions,
flushes all state information, and restarts the application
domain.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Why we go for mvc instead of asp.net? : Asp.Net MVC
What is the state management in asp.net?
What is marshalling ? Is it a part of asp.net ?
Describe session handling in a webfarm, how does it work and what are the limits?
Explain the difference between debug.write and trace.write?
Where the viewstate is stored after the page postback?
What is applicatio domain?
What are strong names?
What are the different types of sessions in asp.net? Name them?
what is command line compiler.what are the steps and how it is related to debugging.
How can you display all validation messages in one control?
Is viewstate enabled by default?
How can we use Web API with ASP.NET Web Form?
What are themes and skins in 2.0, explain usage scenario?
Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?