What is the difference between appsetting and connectionstring
tags in web.config file
Answer Posted / nishanthini.r
ConnectionString: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.
AppSetting:Not only for defining connection u can give any
key value and name it...but connectionString is meant only
for defining path.
<appSettings>
<add key="MyKey" value="00989-00657-45678-34267"/>
</appSettings>
<ConectionStrings>
<add name="MyConnection" ConnectionString="Connection path
which u have to privide">
</ConnectionStrings>
Is This Answer Correct ? | 31 Yes | 4 No |
Post New Answer View All Answers
What is session in web technology?
What is cookies cache and session?
Define session in asp.net.
What are user controls?
What is tracing? Where is it used?
What is content page in asp net?
Explain the use of duration attribute of @outputcache page directive.
How does exception management works in ASP.NET?
Explain diff. Betn dataset and recordset?
Explain the code Access Security (CAS) in .net Framework?
What is difference between cache and session?
What is meant by asp.net?
Which adapter should you use, if you want to get the data from an access database?
What is the significance of ASP.NET routing?
What are the parts of an http response?