日期:2014-05-16 浏览次数:20530 次
<configuration>
<!--<connectionStrings>
<add name="ApplicationServices"
connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
providerName="System.Data.SqlClient" />
</connectionStrings>-->
<connectionStrings>
<add name="ConnectionString"
connectionString="PRovider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\Web\welgeek\welgeek\App_Data\welgeek.accdb;Jet OLEDB:Database PassWord=keleyi.com"
providerName="System.Data.OleDb" />
</connectionStrings>
string connStr;
connStr = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
string connStr;
connStr = ConfigurationManager.ConnectionStrings[0].ConnectionString;