public class Global : System.Web.HttpApplication { protected void Application_Start( object sender, EventArgs e ) { KeyValueConfigurationElement settingKeyValuePair; System.Configuration.Configuration rootWebConfig = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration( "/" ); settingKeyValuePair = rootWebConfig.AppSettings.Settings[ "DomainForEmails" ]; var v = settingKeyValuePair.Value; }
<appsettings> <add key="XmlFilePath" value="C:\yourpath here" /> </appsettings>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)