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

Describe paging in asp.net?

1199


Is web config mandatory?

1016


How to manage different kinds of sessions in ASP.NET?

1118


Explain the code Access Security (CAS) in .net Framework?

1299


What is the use of session?

984


How to reduce the width of textbox in editcommandcolumn of datagrid?

1060


Explain the difference between response.redirect vs server.transfer

1188


What are the different types of validation controls in asp.net?

1106


Explain client side state management system.

1054


What are the session variables?

1028


What is viewstate information stored?

1132


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

1125


How ViewstateMac works?

2881


Explain about consistent programming model in the .NET framework?

1180


What is asp.net globalization?

1027