#檔案名稱:
Web Form程式 –> web.config
Win Form程式 –> app.config
<appSettings>
<add key=”path” value=”c:\httpd.conf”/>
</appSettings>
# *.aspx.vb程式:
imports System.Configuration
‘舊寫法
dim strName as string = ConfigurationSettings.AppSettings.Get(“path”)
‘新寫法
dim strName as string = ConfigurationManager.AppSettings.Get(“path”)