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

Answers were Sorted based on User's Feedback



What is the difference between appsetting and connectionstring tags in web.config file ..

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

What is the difference between appsetting and connectionstring tags in web.config file ..

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

Post New Answer

More ASP.NET Interview Questions

Features and disadvantages of dataset ?

4 Answers   Interlink, Microsoft,


if you disable view state of a textbox will it maintain data during postbacks.if yes reason

9 Answers   FactorH, Jindal, Oxi Infotech,


How will you maintain versioning in asp.net 2.0?

0 Answers   MCN Solutions,


What are the navigation ways between pages available in ASP.NET?

0 Answers   Winsol Solutions,


What are query strings used for?

0 Answers  


How many types of session state management options available in asp.net?

0 Answers  


main difference between asp.net2.0,asp.net1.1,asp.net1.0

15 Answers   Inflexion, Infosys, iSoft, Microsoft, Prakruthi,


True or False: A Web service can only be written in .NET?

5 Answers  


How many classes can a single .NET DLL contain?

14 Answers   Siebel Systems,


Difference between mvc2 and mvc3 in asp.net?

4 Answers   Wipro,


What r new things introduced in ASP.NET 2.0 in comparision to ASP.NET 1.1

1 Answers  


Where does the Web page belong in the .NET Framework class hierarchy?

1 Answers   Perot Systems, Visual Soft,


Categories