What is use of the "appSettings" section in "web.config" file?


The <appSettings> element of the web.config file is a place to store server names, file paths and other miscellaneous settings needed by an application to perform a specific task.


The <appSettings> value can be accessed from the code behind using the following code:

In order to use the ConfigurationManager class, one needs to add the following directive in the code behind:


Comments

Popular posts from this blog

jQuery Basics

What is the difference between a Page Layout and Master Page in SharePoint?

Accessing data from SharePoint 2010 to an ASP.NET application