|
发表于 28-2-2005 11:41 PM
|
显示全部楼层
web.config
<appSettings>
<add key="DBConnection" value="Data Source=localhost;Initial Catalog=your db;Integrated Security=SSPI"/>
</appSettings>
webform1.aspx,webform2.aspx........webformN.aspx
using System.Configuration;
string conn_str=ConfigurationSettings.AppSettings["DBConnection"];
: |
|