ALLInterview.com :: Home Page            
 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                      
Google
   
 
Categories >> Software >> Microsoft Related >> ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions (615)
 C Sharp interview questions  C Sharp Interview Questions (722)
 ASP.NET interview questions  ASP.NET Interview Questions (1443)
 VB.NET interview questions  VB.NET Interview Questions (150)
 COM+ interview questions  COM+ Interview Questions (41)
 ADO.NET interview questions  ADO.NET Interview Questions (199)
 IIS interview questions  IIS Interview Questions (86)
 MTS interview questions  MTS Interview Questions (5)
 Crystal Reports interview questions  Crystal Reports Interview Questions (62)
 BizTalk interview questions  BizTalk Interview Questions (33)
 Dot Net interview questions  Dot Net Interview Questions (861)
 Exchange Server interview questions  Exchange Server Interview Questions (103)
 SharePoint interview questions  SharePoint Interview Questions (25)
 WCF interview questions  WCF Interview Questions (8)
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions (193)
Question
difference between <connectionstring> <Appsetting>
 Question Submitted By :: ASP.NET
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
there are three way to stablished the connection in
web.config file
1- <appsetting>
code.....
</appsetting>
2-
<ConnectionString>
......code
...
</ConnectionString>
3-
you can create own type of tag and register this tag with
machine.comfig files,

there is no more difference to stablish the connection with
any tag,
mostly developer prefer <AppSettion> beause it provieds
some extra properties,but no diff. of the performance,
u can use anyone,
 
Is This Answer Correct ?    10 Yes 5 No
Prabhat Saxena(manu)
 
Answer
# 2
The <appSettings> element of a web.config file is a place
to store connection strings, server names, file paths, and
other miscellaneous settings needed by an application to
perform work
 
Is This Answer Correct ?    9 Yes 7 No
Priya
 
 
 
Answer
# 3
Well inside the appsettings is where you put all properties
that have to do with the entire web application you are
building. Connection strings can be placed inside the
appsettings to make it easy to connect each page from your
site to a database. Instead of defining a connection string
on each page, you write it once it the web.config and can
reference it from all other pages.
 
Is This Answer Correct ?    2 Yes 6 No
Sivaram
 
Answer
# 4
The syntax differences between the application settings and
connection strings sections
 
Is This Answer Correct ?    2 Yes 11 No
Ved
 
Answer
# 5
Simply connection string is saved in web con fig file
in between <Appsetting> tags
 
Is This Answer Correct ?    3 Yes 15 No
Sandeep
 
Answer
# 6
<Appsetting> in Web.Config can be used to store Settings
which are applicable for the whole Application

<connectionstring> is a node within <Appsetting> in the
Web.config
it can be used to store the Connection String
 
Is This Answer Correct ?    3 Yes 19 No
Jerry Joseph
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
what is diffrent between asp & asp.net   2
Which is the best institute for ASP.NET? Tech-Mahindra 7
Types of caching ? TCS 3
What is SOAP, UDDI and WSDL ? Infosys 2
What does the "EnableViewState" property do? Why would I want it on or off?   4
You create an assembly to access data in a relational database. This assembly will be used by several ASP.NET applications on your Web server. You need to ensure that all your applications can access the assembly. Which two actions should you take (Each Answer: presents part of the solution.)? (Choose two) A . Run the Assembly Registration tool (Regasm.exe). B . Run the String Name tool (Sn.exe). C . Run the Installer tool (Intallutil.exe). D . Run the Global Assembly Cache tool (Gacutil.exe). Syntax-Softtech 6
Can you store dataset in viewstate? Microsoft 7
About DataAdapters ? Accenture 8
web farm .. how does session shuld be stored... if inproc used? does the session persists from one server to other. TCS 2
what is the use of asp.net ABC 3
What is DTS package? Accenture 2
What is the Web.config file used for? a) To store the global information and variable definition for the application. b) Configures the time that the server-side codebehind module is called c) To Configure the Web Server. d) To Configure the Web browser. Syntax-Softtech 7
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com