Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading Web.config settings
Message
De
23/11/2005 09:07:08
 
 
À
23/11/2005 09:00:32
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01071544
Message ID:
01071546
Vues:
25
> 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>
>
This is a great article on application settings:

http://www.utmag.com/wconnect/wc.dll?LevelExtreme~9,7,10,1481

The System.Configuration namespace is what you will want to use.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform