What is the role of global.asax?

Answer Posted / sabari

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 ?    18 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any limit for query string? Means what is the maximum size?

479


What is cookies in asp net?

515


What is the difference between the response.write() and response.output.write() methods?

505


Differentiate between namespace and assembly.

555


What is asp.net caching?

568






What are client activated objects and server activated objects?

505


What are the parts of an http response?

486


What is the web.config file in asp?

630


What is an il?

550


What is custom attribute?

565


Which data type does the rangevalidator control support?

545


How would you implement inheritance using c#?

569


Are xaml file compiled or built on runtime?

549


We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?

1396


What are web server controls in asp.net?

543