What is the role of global.asax?

Answer Posted / samantha jyesta

The Global.asax file is an optional file and can be stored
in root directory. This File is in accesible for web-sites.
This Global.asax file contained in HttpApplicationClass.
In Global.asax file we can declare global variables like for
example the variables used in master pages because same
variables can be used for different pages right.It provides
more security than others.
The Global.asax file is used to handle application-level
and session-level events.
we donot worry about configuring Global.asax because it is
itself configured.
This Global.asax file is designed like it
automatically rejects the requests comes from the browser.
Accessing the Global.asax file can not be possible.
while one request is in processing it is impossible to
send another request, we can not get response for other
request and even we can not start a new session.
while adding this Global.asax file to our application
it contains five methods
Those methods are:
1.Application_Start.
2.Application_End.
3.Session_Start.
4.Session_End.
5.Application_Error.

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the Types of state management techniques

552


which one is more flexibility and reliability and durability asp.net (VS)php which one is best and which one we do nice to create dynamic websites

1666


Explain about Automatic resource management?

567


What is event bubbling?

595


Describe the .net base class library.

523






How can we implement a identity (sql server) call in an asp.net page?

546


What is data binding in asp net?

578


How do cookies work? Give an example of their abuse.

535


What is skin in asp.net?

511


Which type if caching will be used if we want to cache the portion of a page instead of whole page?

493


How is a session stored and maintained in asp.net?

519


Explain the different types of directives in .net?

509


Any disadvantages in Dataset and in reflection ?

2814


List the asp.net validation controls?

520


What is the difference between session and viewstate in asp.net?

598