c# - is it possible to Use key values within app.config in vs 2013 -


i trying access key value key in app.config not work.

<appsettings>  <add key="key1" value="dev.cloud" />  <add key="url" value="https://www.[key1].com"/>  </appsettings> 

i tried ${key1} valumanifest.xml not work in app.config. missing here ?

you have use configurationmanager read settings in appsettings section. example:

var key1val = configurationmanager.appsettings["key1"] // returns value of key1 appsettings. 

Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

node.js - Express and Redis - If session exists for this user, don't allow access -