The ASPX file below will read the current sites AppName value and print it. Unlike the PageBuilder class, the ConfigurationReader class need not be invoked in the Page Load event.
Please consult the API documentation for a complete list of available configuration information.
<%@ Page Language="c#" AutoEventWireup="true" AspCompat="true"%>
<%@ Assembly name="Composite.Cms.Pub.ConfigurationReader, Version=3.1.1117.310,
Culture=neutral, PublicKeyToken=b5e57ccb698eab8e" %>
<%@ Import Namespace="Composite.Cms.Pub.ConfigurationReader" %>
<script language="C#" runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
ConfigurationReader CR = new ConfigurationReader( );
Response.Write( CR.GetAppName() );
}
</script>