web.config is an xml file, you can use classes in System.Xml to read/write or use System.Configuration.ConfigurationSettings.AppSettings to read, see http://samples.gotdotnet.com/quickstart/aspplus/doc/configretrieve.aspx
to saucer: 我看了那个网页,并看了System.Configuration.ConfigurationSettings.AppSettings的帮助,但好象只有读,但如何写?
ConfigurationSettings.AppSettings is readonly, you have to resort to classes in System.Xml to write into "web.config"
一些信息可以写在web.config文件中吗?
http://samples.gotdotnet.com/quickstart/aspplus/doc/configretrieve.aspx
我看了那个网页,并看了System.Configuration.ConfigurationSettings.AppSettings的帮助,但好象只有读,但如何写?