In this article, I will explain how we can read the configuration setting from the Web.Config or App.Config file. To read the configuration setting we need to add System.Configuration assembly reference.
There are a few ways to read configuration settings.
public void Read() { var author = ConfigurationManager.AppSettings["Author"]; }
2. Read the entire section from the Web.Config or App.Config
public void Read() { Dictionary<string, string> settings = new Dictionary<string, string>(); var authorSettings = ConfigurationManager.GetSection("AuthorSetting") as NameValueCollection; if (authorSettings.Count > 0) { foreach (var key in authorSettings.AllKeys) { settings.Add(key, authorSettings[key]); } } }
In this article, we have to show Create and Used PIPE in angular
In this article, we have to show Create and Used PIPE in angular
In this article, we have to show Create and Used PIPE in angular