difference between <connectionstring> <Appsetting>

Answers were Sorted based on User's Feedback



difference between <connectionstring> <Appsetting>..

Answer / prabhat saxena(manu)

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 ?    11 Yes 5 No

difference between <connectionstring> <Appsetting>..

Answer / priya

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 ?    10 Yes 7 No

difference between <connectionstring> <Appsetting>..

Answer / sivaram

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 ?    3 Yes 6 No

difference between <connectionstring> <Appsetting>..

Answer / ved

The syntax differences between the application settings and
connection strings sections

Is This Answer Correct ?    3 Yes 12 No

difference between <connectionstring> <Appsetting>..

Answer / sandeep

Simply connection string is saved in web con fig file
in between <Appsetting> tags

Is This Answer Correct ?    4 Yes 15 No

difference between <connectionstring> <Appsetting>..

Answer / jerry joseph

<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 ?    4 Yes 19 No

Post New Answer

More ASP.NET Interview Questions

What is asp.net and ado net?

0 Answers  


How to change the form layout in ASp.net 2.0 ?

1 Answers   Netsweeper,


can we call webservice in Html form?

1 Answers   Bank Of America, BirlaSoft, Microsoft,


what are partial postbacks?

2 Answers   Infosys, Microsoft,


What are the two types of web pages?

0 Answers  






What is the difference between asp.net and mvc?

0 Answers  


what is managed and unmanaged code?

4 Answers   Microsoft,


what is roles in asp.net

2 Answers  


difference between writing connection string in web.config through connection string and appsettings

2 Answers   iSoft,


what are the files used in asp .net

1 Answers  


How does exception management works in ASP.NET?

0 Answers   Alcatel-Lucent,


A brief difference between Session and Cookies in asp.net

5 Answers   HCL, HCL Comnet,


Categories