web config 里
<appSettings>
<add key="dbPath" value="data/-_-.ascx"/>
<add key="ConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0;Data source=|DataDirectory|db1.mdb;"/>
<add key="BoardURL" value="Board.aspx?BoardID=$BoardID&GroupID=$GroupID" />
<add key="BoardPagerURL" value="Board.aspx?BoardID=$BoardID&GroupID=$GroupID&Page=$Page" />
<add key="TopicURL" value="Topic.aspx?BoardID=$BoardID&TopicID=$TopicID" />
<add key="TopicPagerURL" value="Topic.aspx?BoardID=$BoardID&TopicID=$TopicID&Page=$Page" />
</appSettings>
.cs里
string ST_ConnectionString;
ST_ConnectionString=ConfigurationSettings.AppSettings["ConnectionString"];