N
Nick Gilbert
Hi,
How on earth do you get a connection string stored like this in ASP.NET 2?
<configuration>
<connectionStrings>
<add name="ConnectionString" connectionString="blah" />
</connectionStrings>
<configuration>
If I try this (which I've seen in LOADS of online examples:
WebConfigurationManager.ConnectionStrings["Pubs"].ConnectionString
....I get the following error:
Cannot apply indexing with [] to an expression of type
'System.Configuration.ConnectionStringSettingsCollection'
What am I doing wrong?!
Nick...
How on earth do you get a connection string stored like this in ASP.NET 2?
<configuration>
<connectionStrings>
<add name="ConnectionString" connectionString="blah" />
</connectionStrings>
<configuration>
If I try this (which I've seen in LOADS of online examples:
WebConfigurationManager.ConnectionStrings["Pubs"].ConnectionString
....I get the following error:
Cannot apply indexing with [] to an expression of type
'System.Configuration.ConnectionStringSettingsCollection'
What am I doing wrong?!
Nick...