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                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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 Difference between Web.config and global.asax?
Can we write connection String code in global.asax?
 Question Submitted By :: Abhaymalviya
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the Difference between Web.config and global.asax? Can we write connection String code in global.asax?
Answer
# 1
App_code,App_themes,App_data,App_globalresources,App_localre
sources.
 
Is This Answer Correct ?    2 Yes 6 No
Dasharatham
 
  Re: What is the Difference between Web.config and global.asax? Can we write connection String code in global.asax?
Answer
# 2
sorry to the above answer which is applicable to ASP.NET 
application folders..


web.config is which is used for settings to an application 
in future requirement.

Global.asax which is handling application level events and 
session level events..

I expected we can place the connection string like this
  void Session_Start(object sender, EventArgs e) 
    {
Application["sqldb"] = ConfigurationManager.AppSettings
["constr"].ToString();
    }
 
Is This Answer Correct ?    3 Yes 3 No
Dasharatham
 
 
 
  Re: What is the Difference between Web.config and global.asax? Can we write connection String code in global.asax?
Answer
# 3
web.config  contains values.
global.config contains code.


n we cant place connection string code in global.asax.
we can place only in web.config.
 
Is This Answer Correct ?    2 Yes 4 No
Saiish
 
  Re: What is the Difference between Web.config and global.asax? Can we write connection String code in global.asax?
Answer
# 4
web.config file is the root page in the application we use 
this file to make the connection with the database,we can 
use theme attribute,authentication etc.

Where as global.asax file is for handling the Application 
or page level error.
 
Is This Answer Correct ?    1 Yes 0 No
Umesh
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
How do you do validations. Whether client-side or server-side validations are better.? Microsoft4
What is JIT, what are types of JITS and their purpose ? Infosys3
Explain which is best suited place in the Application Start and Session_Start subroutines with an example?  3
What is dataset and uses of dataset ? TCS4
what is the dllhell? why we use the dllhell?  4
How many time you can fill dataset in asp.net? Syntel1
what is the challenging situation you faced in your career? HP3
What is gacutil.exe? Where do we store assemblies, Should sn.exe be used before gacutil.exe? Accenture2
what is client-server architecture in .net? and what is 3-tier architecture?  1
I am using ASP.Net 2.0. I added the following code in button_Click page. but 'PreviousPage' is not taking as a keyword. It throughs an error. Page Poster = this.PreviousPage; TextBox txtNewTest = (TextBox)Poster.FindControl("txtTest"); sDisplay = txtNewTest.Text; Response.Write(sDisplay); The following is the Error Message: 'controls_LoginMain' does not contain a definition for 'PreviousPage'  2
When is the ViewState available during the page processing cycle ?  3
What is the best way to search any exact information on google? Intellevate2
Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe  1
All kind of access specifiers for a class and for methods ? MMTS1
What is the difference between Server.Transfer and Response.Redirect?  4
How do you specify whether your data should be passed as Query string and Forms (Mainly about POST and GET)  2
What are Http handler ? Accenture3
hi im shailendra singh my question is how we deploye the data base HCL2
How to check null values in dataset ? Digital-GlobalSoft4
What are skins?  1
 
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