connection string syntax in page using config file



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>








.



Relevant Pages

  • Re: connection string syntax in page using config file
    ... can someone correct my connection syntax. ... that I'm not properly referening the config settings in my aspx page. ... Compiler Error Message: BC30456: 'connectionStrings' is not a member of ... strConnectString = System.configuration.connectionStrings ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: connection string syntax in page using config file
    ... but the earth is patient." ... can someone correct my connection syntax. ... that I'm not properly referening the config settings in my aspx page. ... Compiler Error Message: BC30456: 'connectionStrings' is not a member of ...
    (microsoft.public.dotnet.framework.aspnet)

Loading