ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
What is the role of global.asax?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the role of global.asax?
Answer
# 1
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 ?    6 Yes 0 No
Sabari
 
  Re: What is the role of global.asax?
Answer
# 2
It is used to storing the global information about the 
application
 
Is This Answer Correct ?    5 Yes 0 No
Gupta
 
 
 
  Re: What is the role of global.asax?
Answer
# 3
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 ?    2 Yes 0 No
Krupali
 
  Re: What is the role of global.asax?
Answer
# 4
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 ?    3 Yes 0 No
Abhishek Maitrey
 
  Re: What is the role of global.asax?
Answer
# 5
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 ?    3 Yes 0 No
Manish Singh (amalga Fusion)
 
  Re: What is the role of global.asax?
Answer
# 6
It is used to implement the application and session level 
event ,for ex- session_start,Application_start etc
 
Is This Answer Correct ?    2 Yes 0 No
Kamlesh
 
  Re: What is the role of global.asax?
Answer
# 7
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 ?    1 Yes 0 No
Joicy
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Difference between asp and asp.net? Accenture3
Can you explain the difference between an ADO.NET Dataset and an ADO Recordset? HCL3
Is There any Third party tools are using in .Net Technologies? Can u Explain? HCL2
What is an iHTTPModule, and explain its implementation with its limitations?  1
what do machine key element in configuration file specify? TCS1
What is the difference between ExecuteReader,ExecuteNonQuery and ExecuteScalar.  3
How do you create a permanent cookie?  2
What is Runtime callable wrapper?  2
What is the lifespan for items stored in ViewState?  3
In a webpage if i want to give access to only half page ,then what should i do?  3
web farm .. how does session shuld be stored... if inproc used? does the session persists from one server to other. TCS2
Explain what a diffgram is, and a good use for one? FT1
how can i inharit multiple classes?  1
What is a Repeater Control and how does it works? and what is the diffrence b/w Gridview,datalist and repeater control? USi2
version information is mentioned in which file AG-Technologies3
How do you implement postback with a text box? What is postback and usestate?  1
When web.config is called ? Keane-India-Ltd2
what is the dllhell? why we use the dllhell?  4
How can we Maintain more than on config file in one .Net web application and how? USi1
To match the two different controls which control would we use ?  2
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com