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

What is x xss protection?

577


What is razor? : asp.net mvc

570


What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?

590


What are the asp.net security controls?

567


What is http post action?

563






What is query string?

579


Explain the asp.net page life cycle.

566


What are web server controls in asp.net?

560


What is sdlc process?

534


What are the modes of updation in an updatepanel? What are triggers of an updatepanel?

515


How would you implement inheritance using c#?

591


How can you dynamically add user controls to a page?

521


Types of instancing properties and explain each. Tell the difference between multiuse,singleuse and globalmultiuse and which is default ?

2279


What is view state management in asp net?

472


What is http post and http get?

552