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
How is application management and maintenance improved in asp.net 2.0?
how to debug web services on consumer side?
Can we store object in viewstate?
What are client activated objects?
How to use multiple scriptmanager controls in a web page?
What is the use of session in web application?
What is the state management in asp.net?
What is the significance of attaching a profile while creating a user?
Distinguish between Server-side and Client-side code with its functionality?
Is data edited in the Repeater control?
1.What r collections? 2.What is .pdb file? 3.Is it possible to provide access to users in master page? 4.What is dirty n Phantom Read(SQL)? 5.What r different isolation levels(SQL)? 6.How to set authentication mode in web.config file?
How will you load dynamic assembly? How will create assesblies at run time?
What is the concepts of globalization and localization in .net?
How do I force the dispose method to be called automatically, as clients can forget to call dispose method?
Define caching.