References
Add System.Configration reference.
App.config or Web.config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="TempWorkingLocation" value="D:\Temp"/>
</appSettings>
</configuration>
Code
strTempWorkingLocation = System.Configuration.ConfigurationManager.AppSettings["TempWorkingLocation"].ToString();
Comments