jonefer
Fri Aug 18 13:00:01 CDT 2006
but the entire line:
'System.Configuration.ConfigurationManager'
Doesn't work - says ConfigurationManager isn't under Configuration (this is
only in a Windows Project, WebProject has ConfigurationManager)
"Herfried K. Wagner [MVP]" wrote:
> "jonefer" <jonefer@discussions.microsoft.com> schrieb:
> >I guess the following only works for Web Projects...
> >
> > Imports System.Data.SqlClient
> > Imports System.Configuration
> >
> > Dim sCodaCon As String =
> > System.Configuration.ConfigurationManager.AppSettings("MyCnn")
> >
> > What is the equivalent for retrieving the ConnectionString from the
> > App.Config file?
>
> 'My.Settings'.
>
> --
> M S Herfried K. Wagner
> M V P <URL:
http://dotnet.mvps.org/>
> V B <URL:
http://dotnet.mvps.org/dotnet/faqs/>
>