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
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?
Explain the advantages of caching?
What are the session management techniques asp net?
If you want to bind the columns manually within the asp:datagrid tags what kind of tags you have to add.
WSDL means?
What is meant by asp.net?
Please briefly explain the usage of global.asax?
Can we handle the error and redirect to some pages using web.config?
6. Tell us about a time when you failed to meet a deadline. What were the repercussions?
Explain the difference between an exe and a dll?
What is a session in asp.net?
What is the maximum number of classes that can be contained in one dll file?
In ViewState How much lifespan items stored?
What are early binding and late binding.
What are the ways of preserving data on a Web Form in ASP.NET?