Try
System.Configuration.ConfigurationSettings.AppSettings("SQLConnString")
HTH,
Greg
"Loi Tan Vo" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All
>
> I have tested this property. But it doesn't work
> This property reads from configuration file app.config
>
> Public Class DbAccess
> Shared ReadOnly Property ConnString() As String
> Get
> Dim strConnection As String
> strConnection =
>
System.Configuration.ConfigurationSettings.AppSettings.GetValues("SQLConnStr
ing")
> Return strConnection
> End Get
> End Property
> End Class
>
> Some boby can figure out what wrong it is?
> Thanks in advance
>
> - Loi -
|