Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading Web.config settings
Message
From
23/11/2005 09:00:32
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Reading Web.config settings
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01071544
Message ID:
01071544
Views:
65
All,

How do I read the connection string? The settings I am using is below.
<configuration>
   <appSettings/>

      <connectionStrings>

<add name="WebShopper" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=WebShopper;Integrated Security=True" providerName="System.Data.SqlClient"/>

<remove name="LocalSqlServer"/>

<add name="LocalSqlServer" connectionString="Data Source=.\SQLEXPRESS;initial catalog=WebSite;integrated security=SSPI;persist security info=False;workstation id=WTI01;packet size=4096" providerName="System.Data.SqlClient"/>

</connectionStrings>
Thanks

Jim
Thanks

Jim
Next
Reply
Map
View

Click here to load this message in the networking platform