Configuration ASP.Net Tutorial

File: SubFolder\ShowConfigRelative.aspx
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Web.Configuration" %>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    void Page_Load()
    {        CompilationSection section = (CompilationSection)WebConfigurationManager.GetSection("system.web/compilation");
        lblDebug1.Text = section.Debug.ToString();
        section = (CompilationSection)WebConfigurationManager.GetWebApplicationSection("system.web/compilation");
        lblDebug2.Text = section.Debug.ToString();
    }



    Show Config Relative


    
    

    GetSection Debug:
            id="lblDebug1"
        Runat="server" />
    
    GetWebApplicationSection Debug:
            id="lblDebug2"
        Runat="server" />