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 asp.net mvc? : asp.net mvc
What are the event handlers that we can have in global.asax file?
Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?
Can you explain why it is useful to use mvc instead of webforms? : asp.net mvc
List all templates of the repeater control.
Why session is used in asp.net?
what is AutoEventWireUp and what is the use of This property explain in details?
Why is xap important?
What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?
what are the events raised in asp.net page life cycle?in which stage view state can be loaded?
How to turn off cookies for a page?
What is custom events? How to create it?
Can we have 2 web config files?
What is session in http request?
Who creates jsessionid?