D
Darrel
*sigh*...I have gotten no where with my .net 2.0 project. ;o)
I'm still stuck on db connection strings.
I have a connection string in my web config:
<appSettings>
<add key="DBConn" value="[my connection string]" />
</appSettings>
Then in my function, I try to get it. I've tried this:
Dim strConnect As String =
ConfigurationManager.ConnectionStrings("DBConn").ConnectionString()
as well as this:
Dim strConnect As String =
ConfigurationManager.ConnectionStrings("DBConn").toString()
to no avail.I keep getting an error on that line:
I'm still stuck on db connection strings.
I have a connection string in my web config:
<appSettings>
<add key="DBConn" value="[my connection string]" />
</appSettings>
Then in my function, I try to get it. I've tried this:
Dim strConnect As String =
ConfigurationManager.ConnectionStrings("DBConn").ConnectionString()
as well as this:
Dim strConnect As String =
ConfigurationManager.ConnectionStrings("DBConn").toString()
to no avail.I keep getting an error on that line: