Amira Elsayed Ismail Amira Elsayed Ismail -4 years ago 164
ASP.NET (C#) Question

Read Variable from Web.Config

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

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download