Hello John,
To get that string try:
// Get the connectionString.
ConnectionStringSettings connectionStringSettings =
ConfigurationManager.ConnectionStrings["GUIDBConnectionString"];
Then to use it:
// Initialize the connection with the string
SqlConnection sqlConnection - new
SqlConnection(connectionStringSettings.ConnectionS tring);
--
I think that should do it - brians
http://www.limbertech.com
"John A Grandy" wrote:
> If a SQLDataSource add the following to my web.config file, how to I
> programmatically extract the connection string:
>
> <configuration>
>
> <appSettings/>
>
> <connectionStrings>
>
> <add name="GUIDBConnectionString" connectionString="Data
> Source=(local);Initial Catalog=GUI;Integrated Security=True"
>
> providerName="System.Data.SqlClient" />
>
> </connectionStrings>
>
>
>