S
staeri
I have a public class in a vb file placed in the app_code directory
where I would like to put generic db functions.
I was hoping to get the connection string from web.config with the
following code but it doesn't work:
Public Shared ConnectionString As String =
ConfigurationSettings.AppSettings("ConnectionString")
It says that "this method is obsolete". Is there any other way to make
it work?
Regards,
S
where I would like to put generic db functions.
I was hoping to get the connection string from web.config with the
following code but it doesn't work:
Public Shared ConnectionString As String =
ConfigurationSettings.AppSettings("ConnectionString")
It says that "this method is obsolete". Is there any other way to make
it work?
Regards,
S