Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How is application management and maintenance improved in asp.net 2.0?

1038


how to debug web services on consumer side?

1109


Can we store object in viewstate?

1018


What are client activated objects?

1067


How to use multiple scriptmanager controls in a web page?

1151


What is the use of session in web application?

1012


What is the state management in asp.net?

1066


What is the significance of attaching a profile while creating a user?

1110


Distinguish between Server-side and Client-side code with its functionality?

1182


Is data edited in the Repeater control?

1081


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?

2273


How will you load dynamic assembly? How will create assesblies at run time?

973


What is the concepts of globalization and localization in .net?

1003


How do I force the dispose method to be called automatically, as clients can forget to call dispose method?

991


Define caching.

1098