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 (1444)
 VB.NET interview questions  VB.NET Interview Questions (151)
 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 stateless ? TCS 2
how many session modes are available?some brief explnation   1
Whats the use of @ Register directives ?   4
hi wrever i go thy r asking depth abt 3-tier architecture i.e, hw to deploy 3 layers into 3 servers i do nt have much idea on deployment. can any one send me the tips or code if u hav kindly mail me. Wipro 1
Hey I am using asp.net mvc architecture. I creating one dropdownlist using <select id="State" name="State"></select> this is dynamic list.Its displaying properly. But in time of Edit.If i load a page dropdownlist is not displaying the item which is stored in table.   1
can we transfer data from one page to another page using viewstate if so how?if not y? Wipro 37
will this code works fine? or will it gives error? Object obj=5; int i=6; i=i+obj; Patni 1
How do you trap errors in ASP and how do you invoke a component in ASP ? Cognizent 1
Which @page directive should you create an asynchronous page?   1
What are the different ways of processing data in ASP page in the server side (like Forms, QueryStrings etc)?   1
after which page life cycle event all properties of control will be "fully loaded " FactorH 10
Differnce between Control an View State Proteans 1
 
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