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();
Last modified: June 24, 2019

Author

Comments

Write a Reply or Comment