difference between <connectionstring> <Appsetting>
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Answer / ved
The syntax differences between the application settings and
connection strings sections
| Is This Answer Correct ? | 3 Yes | 12 No |
Answer / sandeep
Simply connection string is saved in web con fig file
in between <Appsetting> tags
| Is This Answer Correct ? | 4 Yes | 15 No |
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 |
What is .Net3.0 and .Net3.5? Describe something about that Features..
What is smart navigation?
Differentiate between file-based dependency and key-based dependency.
how can i call output parameters from ado.net
what is diffrence between debug class and trace class in asp.net ?
When would you not use the oleDbConnection object? a) To connect to an SQL 7.0 database. b) To connect to a DB/2 database. c) To connect to an Access database. d) To connect to an SQL 6.5 database.
What is asp according to you?
What are the ways to sending the data in ASP.NET page?
Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?
Explain parts of assembly?
Differentiate globalization and localization.
Explain the scenario where we go for inpro and outpro session?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)