[1.1]
puoi anche servirti del file Web.Config per memorizzare la stringa di connessione:

codice:
  <appSettings>
    <add key="strconn" value="PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=c:\database.mdb" />    
  </appSettings>
recuperandola poi nelle tue pagine aspx (o meglio, nel code-behind) così:

codice:
 Imports System.Data.OleDb
 Imports System.Configuration

 Dim cn As New OleDb.OleDbConnection(ConfigurationSettings.AppSettings("strconn"))
 cn.Open()