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 data binding in asp net?

795


What is a user session?

680


Can you explain composite pattern?

776


How does a web application session work?

774


What are the different session state management options available in asp.net?

719


What are different types of authentication techniques that are used in connection strings to connect .net applications with microsoft sql server?

722


What are the versions of garbage collection?

1644


Is razor a programming language?

703


What are the Types of objects in ASP

758


What is the caspol.exe tool used for?

739


What is full form of asp.net?

703


Explain the difference between Repeater and Data list control in ASP.NET?

811


What’s the difference between asp.net web forms and asp.net mvc?

783


Difference between .NET and previous version?

2295


What is mvc in asp.net tutorial? : Asp.Net MVC

768