Read Variable from Web.Config

后端 未结 6 1789
谎友^
谎友^ 2020-12-14 05:20

How can I add and read the value from web.config file?

6条回答
  •  长情又很酷
    2020-12-14 05:53

    I would suggest you to don't modify web.config from your, because every time when change, it will restart your application.

    However you can read web.config using System.Configuration.ConfigurationManager.AppSettings

提交回复
热议问题