答案 0 :(得分:3)
答案 1 :(得分:0)
尝试
System.Configuration.Configuration config = WebConfigurationManager.OpenWebConfiguration(Request.ApplicationPath);
config.AppSettings.Settings.Item("Key").Value = TextBox1.Text;
config.Save(ConfigurationSaveMode.Modified);