string ConnectionString = WebConfigurationManager.ConnectionStrings["AccessConnectionString"].ConnectionString;
OleDbConnection Connection = new OleDbConnection(ConnectionString);
ตัวอย่างตอนเอาไปสร้าง OleDbConnection (VB.NET)
Dim ConnectionString As String = WebConfigurationManager.ConnectionStrings("AccessConnectionString").ConnectionString
Dim Connection As new OleDbConnection(ConnectionString)
Tag : .NET, Ms Access, Ms SQL Server 2005, Ms SQL Server 2008, Web (ASP.NET)