你好
或者你可以參考以下URL
如何:从 Web.config 文件读取连接字符串
http://msdn.microsoft.com/zh-cn/library/ms178411.aspx
或
如何:从 Web.config 文件读取应用程序设置
http://msdn.microsoft.com/zh-cn/library/610xe886.aspx
可以參考以下URL 如何定義connection string
http://www.connectionstrings.com/
我會建議使用connection string 設定
Please correct me if my concept is wrong