Tell About Global.asax ?

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


Please Help Members By Posting Answers For Below Questions

Can you dynamically assign a Master Page?

746


How can we create pie chart in asp.net?

795


Tell me how asp.net mvc differs from asp.net web forms? : asp.net mvc

792


Any one can tell how we store tiff format images in database and retrive from the database(need for tiff format only)

1802


What is postback in asp net?

749


What is marshalling ? Is it a part of asp.net ?

806


Explain Life cycle of ASP.NET page when a request is made.

931


Explain cashing in asp.net.

704


How would you turn off cookies on a page of a website?

671


What setting must be added in the configuration file to deny a particular user from accessing the secured resources?

711


Explain different types of Caching techniques in ASP.NET?

727


Whats the difference between abstract factory pattern and factory pattern?

795


Can we store object in viewstate?

734


Explain what is the procedure to create the environment for asp.net? : asp.net mvc

771


In a Repeater control how one can provide an alternating color scheme ?

771