数据库连接字串 Sql数据库 < appSettings > <!-- // 数据库连接 // --> < add key ="StrConn" value ="Server=127.0.0.1; uid=sa; pwd=sa; DataBase=bbsDB" /> </ appSettings > Access数据库 < appSettings > <!--// 数据库连接 //--> < add key ="StrConn" value ="Provider=Microsoft.Jet.OleDb.4.0;Data Source=" /> </ appSettings > 获取 System.Configuration.ConfigurationSettings.AppSettings[ " StrConn " ]; posted on 2006-02-07 15:32 堕落的卖猪贩 阅读( ...) 评论( ...) 编辑 收藏 转载于:https://www.cnblogs.com/zkxp/archive/2006/02/07/326618.html