Get all settings for AppSettings Section : AppSettingsSection « Configuration « ASP.NET Tutorial






<%@ page language="C#" %>

<script runat="server">
    
    void Page_Load(object sender, System.EventArgs e)
    {
        foreach (string key in ConfigurationSettings.AppSettings) {
            this.Response.Write(string.Format("<b>{0}</b> = {1}", key, ConfigurationSettings.AppSettings[key]));
        }
    }
    
</script>

<html>
<head id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
    
<body>
    <form id="Form1" runat="server">
    </form>
</body>
</html>








16.4.AppSettingsSection
16.4.1.Get Configuration for application path
16.4.2.Get all settings for AppSettings Section