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...

How do you retrieve information from web.config ?

Answer Posted / sudhir kunnure

In web.congig you can add key and its value.And that key
value u can retrive like

string connectionString =
System.Configuration.ConfigurationSettings.AppSettings
["conStringWeb"].ToString()

Here conStringWeb is my key and i access its value.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many web.config files can I have in an application?

936


How much is the pay-for-use service if I chose not to use microsoft-sponsored advertising?

907


What do you mean by authentication?

1021


Why do we use sessions?

951


Is it possible to apply themes to an asp.net application? If yes, then how?

975


What are the session management techniques asp net?

953


Explain about secure socket layer?

892


Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?

1029


What threading model used in asp and asp.net?

1012


What kind of programming language is ASP.NET?

1086


What is a SESSION and APPLICATION object?

993


How can you pass multiple complex types in Web API?

999


What is redirectpermanent in asp.net?

1026


What do you mean by caching in asp.net?

976


What's the use of formatters in .net?

988