I have an app.config file where i have the same value many many times in the file and would like to be able to change it in one place.
Something like:
<appSettings>
<add key="dbHostAddress" value="localhost" />
</appSettings>
and then consume it for my Data Souce value in my connectionstring like below for example
<connectionStrings><add name="ConnectionString" connectionString="Data Source=I WOULD LIKE TO ACCESS THE VALUE HERE;Initial Catalog=Database;Integrated Security=True;Connect Timeout=15" /></connectionStrings>
Can i do this somehow?