What is the difference between appsetting and connectionstring
tags in web.config file
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / vamsipriya
Difference between appSettings and connectionString is:
AppSettings is meant for any data string that can be
stored while connectionString is meant for storing the
database connection strings only.
| Is This Answer Correct ? | 3 Yes | 1 No |
Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?
What's the use of formatters in .net?
Can we override the enablepartialrendering property of the scriptmanager class?
Which is better session or viewstate?
What is the maximum timeout we can set for Cookies?
I have one application, one user purchase some products in my application? and another person came he is also purchase some products?how can we identify which user purchase which items? my answer is by using session id? but i dont know how? can u give me programming for that?
What is the use of asp.net web api?
What is the relationship(in oops) between codebehind and inline code(.aspx to .aspx.cs)??? explain
Why should i prefer JSP over asp.net or any other web development language..??
What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?
What is a 1x1 pixel?
Explain the benefits of viewstate?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)