connection string syntax in page using config file
- From: "D. Shane Fowlkes" <shanefowlkes@xxxxxxxxxxxxxxxxx>
- Date: Wed, 8 Feb 2006 13:48:47 -0500
I'm trying out a whole bunch of new (to me) techniques. Using asp.net 2
(vb), can someone correct my connection syntax. The problem seems to be
that I'm not properly referening the config settings in my aspx page.
Thanks!
Compiler Error Message: BC30456: 'connectionStrings' is not a member of
'Configuration'.
strConnectString = System.configuration.connectionStrings("DRPTWeb")
My web.config file:
<configuration>
<connectionStrings>
<add name="DRPTWeb" connectionString="Data Source=DRPT-DEV01;Initial
Catalog=DRPT....etc....." providerName="System.Data.SqlClient" />
</connectionStrings>
.
- Follow-Ups:
- Re: connection string syntax in page using config file
- From: Christopher Reed
- Re: connection string syntax in page using config file
- Prev by Date: Re: Do I need to close a connection after grabbing a datareader?
- Next by Date: Re: Cannot load Class?? .NET2
- Previous by thread: No default member found
- Next by thread: Re: connection string syntax in page using config file
- Index(es):
Relevant Pages
|
Loading