Why Global.asax is used?

Answers were Sorted based on User's Feedback



Why Global.asax is used?..

Answer / lalit

Global.asax file is used for storing values at session
level and Application level.

Is This Answer Correct ?    4 Yes 0 No

Why Global.asax is used?..

Answer / 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 ?    4 Yes 0 No

Why Global.asax is used?..

Answer / srujana

To implement application and session level events, the
Global.asax is used.

Is This Answer Correct ?    4 Yes 1 No

Why Global.asax is used?..

Answer / suresh

The Global.asax file, also known as the ASP.NET application
file, is an optional file that contains code for responding
to application-level events raised by ASP.NET or by HTTP
modules.

For More information Visit..
http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/cpgenref/html/cpconGlobalasaxSyntax.asp

Is This Answer Correct ?    3 Yes 2 No

Why Global.asax is used?..

Answer / arun

It allows you to execute application level events and
settings application level variables

Is This Answer Correct ?    1 Yes 0 No

Why Global.asax is used?..

Answer / shailesh thapa

It is an optional application level file and at the compile
time be converted in a class inheriting the HttpApplication
class and it keeps the event handlers for the session and
application.

Is This Answer Correct ?    0 Yes 0 No

Why Global.asax is used?..

Answer / gurvinder singh

Global.asax file is used for storing values at session
level and Application level.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More ASP.NET Interview Questions

Why web api is better than wcf?

0 Answers  


What is server objects in asp.net?

5 Answers  


If you want to bind the columns manually within the asp:datagrid tags what kind of tags you have to add.

0 Answers   Siebel,


what are the differences between windows services and web services?

5 Answers   Tech Mahindra,


Explain what does wsdl stand for?

0 Answers  






Turn Off ASP Session State on an IIS 5.1 Web Site

1 Answers  


How to create multi language website in asp.net mvc? : Asp.Net MVC

0 Answers  


Explain diff between dataset and datareader?

0 Answers  


What is the file extension of web service?

0 Answers  


What is the need to give <compilation debug=true> command ?

3 Answers   Netsweeper,


How do you handle unhandled exceptions in ASP.NET?.

3 Answers  


what is soap?

5 Answers   Cognizant, Microsoft, NCR,


Categories