Hey,
You can use string formatting, so in the appsettings, you define:
<add key="cs" value="server={0};initial catalog={1};integrated security=false;uid={2};pwd={3}" />
In your code, you get the appsetting cs and use String.Format to replace the placeholders {0}, {1}, etc with the appropriate values.
Brian
|