cs 中 调用:
?
1
2
3
4
5
6
7
8
|
string sConn = "";
//调用一
sConn = ConfigurationManager.ConnectionStrings["access_conn"].ConnectionString
+ HttpContext.Current.Server.MapPath(ConfigurationManager.ConnectionStrings["access_path"].ConnectionString);
//调用二
sConn = ConfigurationManager.ConnectionStrings["blogConn"].ConnectionString;
OleDbConnection conn = new OleDbConnection(sConn);
conn.Open();
|
希望本文所述对大家的asp.net程序设计有所帮助。
……