J
John Galt
I am trying to read the "ConnectionString" value from my app.exe.config
file, but am not sure of the format to do this.
It is of the form:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appParams>
<add key="ConnectionString" value="User
Id=MyID;Password=MyPW;Initial Catalog=MyDB;Server=d-sql;" />
</appParams>
etc.
</configuration>
In particular, I am interesting in getting the "Server=d-sql" info.
It seems like is should be something like
System.Configuration.ConfigurationSettings.AppSettings("ConnectionString"),
but that doesn't seem to work.
file, but am not sure of the format to do this.
It is of the form:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appParams>
<add key="ConnectionString" value="User
Id=MyID;Password=MyPW;Initial Catalog=MyDB;Server=d-sql;" />
</appParams>
etc.
</configuration>
In particular, I am interesting in getting the "Server=d-sql" info.
It seems like is should be something like
System.Configuration.ConfigurationSettings.AppSettings("ConnectionString"),
but that doesn't seem to work.