read web.config values

  • Thread starter Thread starter Claudia Fong
  • Start date Start date
C

Claudia Fong

Hi,

Is it possible to read the webconfig values from the server side?


Cheers!

Claudi
 
Hi,

Is it possible to read the webconfig values from the server side?

Cheers!

Claudi

*** Sent via Developersdexhttp://www.developersdex.com***

Take a look in the ConfigurationManager Class

An example:

string cs = ConfigurationManager.AppSettings["ConnectionString"];

returns a string from the appsettings section

<appSettings>
<add key="ConnectionString" value="..."/>
</appSettings>
 
Back
Top