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
 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 ?    1 Yes 0 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 ?    0 Yes 1 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 ?    0 Yes 0 No
Saiish
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
What property must you set, and what method must you call in your code, in order to bind the data from a data source to the Repeater control?  1
2. Why did you choose this career? Swatz-Oils1
How can you assign styles to webforms? Microsoft1
How can i include both C# and vb.net classes in same solution?  2
web user and custom conrols  1
what are the ways to improve performance in .net application? Mind-Tree2
what is the difference between this.controls and page.form1.controls and me.controls? FactorH2
Could u send me the answer for this question as soon as possible. Im using 'System.net.mail.mailmessage' namespace for sending a mail from my application. What should I mention in 'system.net.mail.mailmessage.to' property and What should I mention in 'system.net.mail.mailmessage.from' property.  1
Is it necessary to undertsand these events of an ASPX page execute. Explain its importantance? HCL1
diffrance between stored procedure & function in sql server?  2
About remoting and web services. Difference between them? Microsoft2
code for inserting images into gridview colomns from database HP3
When during the page processing cycle is ViewState available?  1
What?s the difference between Response.Write() andResponse.Output.Write()?  2
is it possible to access website from a remote place, without deploying it on web server?  1
How will u decide when to use caching and when to use viewstate?  2
What is the lifespan for items stored in ViewState?  2
# What is the transport protocol you use to call a Web service?  1
What is custom control. What is the difference between custom control and user control? Microsoft2
What is difference between masterpage and user control, what is the objective of master page when we had user control in .NET 1.1 version DELL2
 
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