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 data binding in asp net?
What is a user session?
Can you explain composite pattern?
How does a web application session work?
What are the different session state management options available in asp.net?
What are different types of authentication techniques that are used in connection strings to connect .net applications with microsoft sql server?
What are the versions of garbage collection?
Is razor a programming language?
What are the Types of objects in ASP
What is the caspol.exe tool used for?
What is full form of asp.net?
Explain the difference between Repeater and Data list control in ASP.NET?
What’s the difference between asp.net web forms and asp.net mvc?
Difference between .NET and previous version?
What is mvc in asp.net tutorial? : Asp.Net MVC