Monday 24 May 2010

appSettings in Web.onfig

It takes key and value combination.

<appSettings>

<add key="ServerURI" value="http://localhost:1643/"/>

appSettings>

To read value from web.config

string configPath = ConfigurationManager.AppSettings[key].ToString();

No comments:

Post a Comment