Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the role of global.asax?

Answers were Sorted based on User's Feedback



What is the role of global.asax?..

Answer / 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

What is the role of global.asax?..

Answer / 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

What is the role of global.asax?..

Answer / gupta

It is used to storing the global information about the
application

Is This Answer Correct ?    14 Yes 3 No

What is the role of global.asax?..

Answer / kamlesh

It is used to implement the application and session level
event ,for ex- session_start,Application_start etc

Is This Answer Correct ?    11 Yes 1 No

What is the role of global.asax?..

Answer / manish singh (amalga fusion)

The Role of Global.asax
1> it is used to implement application level event and
session level event.
2> it is also used to track the current application.
3> it provides place for the application to declare global
variable for application.

Is This Answer Correct ?    10 Yes 3 No

What is the role of global.asax?..

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 ?    7 Yes 2 No

What is the role of global.asax?..

Answer / binishnb

Store global information about the application

Is This Answer Correct ?    5 Yes 0 No

What is the role of global.asax?..

Answer / krupali

You can use global.asax file to define global variables and
react to global events,such as when web application first
starts. Visual studio doesn't create a global.asax file by
default you need to add it when it is approprieate.

Is This Answer Correct ?    7 Yes 3 No

What is the role of global.asax?..

Answer / joicy

The Global.asax file is an optional file that can contain
declarations of objects, variables, and methods that can be
accessed by every page in an application.The Global.asax
file can contain only the following:

Application events
Session events
<object> declarations
TypeLibrary declarations
the #include directive
The Global.asax file must be stored in the root
directory of the application, and each application can only
have one Global.asax file.

Is This Answer Correct ?    6 Yes 3 No

What is the role of global.asax?..

Answer / nanthini

global.asax is present one time only per application.
it implement in application-leval and session -level,
It can be stored in root directory.
It can contain 5 methds.
1.Application_Start.
2.Application_End.
3.Session_Start.
4.Session_End.
5.Application_Error.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

public key?

1 Answers   Microsoft,


my name is sumeetha i am using google gears in .net.what's the problem is my server is in another place. i am working here when i entered the values in textboxes and press enter then it should store in database(sql server) which is in another system.when that sever system is shutdown then the values which i submit should store in my system and after system opened it should automatically store the values in the system can any one plz urgent suggest answer for this question?

2 Answers  


How does the iis work?

0 Answers  


If you are using components in your application, how can you handle exceptions raised in a component?

0 Answers   Accenture,


Define the steps to set up validation control.

0 Answers  


What is a global postback url?

0 Answers  


Where is the view state data stored in asp net?

0 Answers  


What is server infrastructure?

0 Answers  


Where do you store the information about the user?s locale?

1 Answers   Siebel, Visual Soft,


Is it possible for me to change my aspx file extension to some other name?

0 Answers  


what is diffrence between debug class and trace class in asp.net ?

2 Answers  


Write a code snippet to implement the indentation in json in web api.

0 Answers  


Categories