J
Jacek Jurkowski
<configuration>
<connectionStrings>
<add name="Northwind"
connectionString="Data Source=localhost;Integrated
Security=SSPI;Initial Catalog=Northwind;"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>How to access "Northwind" from the c# code?I supposed to
write String s =
ConfigurationSettings.ConnectionStrings["Northwind"].ConnectionStringbut it
causes an error that ConnectionStrings section is not found.What do I do
wrong?
<connectionStrings>
<add name="Northwind"
connectionString="Data Source=localhost;Integrated
Security=SSPI;Initial Catalog=Northwind;"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>How to access "Northwind" from the c# code?I supposed to
write String s =
ConfigurationSettings.ConnectionStrings["Northwind"].ConnectionStringbut it
causes an error that ConnectionStrings section is not found.What do I do
wrong?