Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection strings
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01495597
Message ID:
01495651
Vues:
41
>Thanks
>
>and my supplementary question is why ?

One of the main reasons would be consistency. Developers will expect connectionstrings to be kept there.

Also, Configurationmanager.Connectionstring('connectionstringname') will return a connectionstring properly.

>
>Nick
>
>
>>connectionStrings
>>
>>>I'm looking at 2 web sites
>>>
>>>one has connection strings stored in
>>>
>>>
>>><appSettings>    
>>>    <add key="SQLConn" value="Data Source=TEST\SQLEXPRESS;Initial Catalog=Validation;Connection Timeout=300;User ID=webuser;Password=password" />
>>>
>>>the other has
>>>
>>>
   <connectionStrings>
>>>    <add name="SQL" connectionString="Data Source=TEST\SQLEXPRESS;Initial Catalog=Validation;Connection Timeout=300;User ID=webuser;Password=password" providerName="System.Data.SqlClient"/>
>>>
>>>
>>>Whats the best method ?
>>>
>>>Thanks
>>>
>>>Nick
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform