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


Please Help Members By Posting Answers For Below Questions

What is session in web technology?

522


What is cookies cache and session?

542


Define session in asp.net.

561


What are user controls?

571


What is tracing? Where is it used?

555






What is content page in asp net?

505


Explain the use of duration attribute of @outputcache page directive.

624


How does exception management works in ASP.NET?

617


Explain diff. Betn dataset and recordset?

551


Explain the code Access Security (CAS) in .net Framework?

684


What is difference between cache and session?

502


What is meant by asp.net?

542


Which adapter should you use, if you want to get the data from an access database?

543


What is the significance of ASP.NET routing?

634


What are the parts of an http response?

498