阅读来自Web.Config中变 [英] Read Variable from Web.Config
本文介绍了阅读来自Web.Config中变的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何添加从web.config中读取值?
How can I add and read value from web.config?
推荐答案
我建议你不要从你修改web.config中,因为每一次改变的时候,它会重新启动应用程序。
I would suggest you to don't modify web.config from your, because every time when change, it will restart your application.
但是,您可以使用阅读的web.config System.Configuration.ConfigurationManager.AppSettings
However you can read web.config using System.Configuration.ConfigurationManager.AppSettings
这篇关于阅读来自Web.Config中变的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文