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 are the different types of validation controls in asp.net?
a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?
Describe a Windows Service and its lifecycle ?
Can you change a master page dynamically at runtime? How?
How may clustered index we can create in table?
How Session use Cookies in State Management?
How do I open an ashx file?
Where code pages are used?
What is rich control in asp.net?
Explain how asp.net different from asp?
How would you create a permanent cookie?
How can we prepairing Interview
What is the difference between cache and cookies?
Explain cashing in asp.net.
Explain the difference between an exe and a dll?