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 cookies in asp net?
What is the purpose of using MVC programming pattern in ASP.NET?
Is it true that a Web service must be written in .NET or not?
benefits of migration from asp to asp.net hi frnds, i have to give presentation to a client about how useful would be migrating their project from asp to asp.net .plz give me some points which i should incorporate in my ppt thanks
What are the two types of web pages?
What is data caching?
In Data grid the question is below quantity price total these are 3 fields available in data grid if you enter quantity the total has to update automatically.Price field is already filled completely
What is form method?
What is difference between viewstate and session in asp net?
What are the different methods of session maintenance in asp.net?
Name the tools or API for developing or testing web api?
In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?
Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?
What are httphandlers and httpmodules and difference between them?
What are the merits and demerits of viewstate?