1. it is not recommended, but try this:
OleDbConnection conn = (OleDbConnection)Application
["myconn"]2. you could write the connection string in web.configweb.config:
<configuration>
  <appSettings>
    <add key="pubs" value="server=(local)\NetSDK;database=pubs;Trusted_Connection=yes" />
    <add key="northwind" value="server=(local)\NetSDK;database=northwind;Trusted_Connection=yes" />
  </appSettings>
</configuration>C# code:
String dsn = ConfigurationSettings.AppSettings["pubs"];you'd better not share an database connection object, open it and close it in a single page