Show navigation | Frontpage | Contact us | Sitemap

ReadConfig.aspx sample

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>

My modules


© 2008 Composite A/S, Danmark
Tlf: +45 39 15 76 00 | info@composite.net
Composite A/S er Microsoft Certified Partner
Composite CMS overholder standarden for valid CSS
Composite CMS overholder standarden for valid XHTML 1.0
Printet fra http://www.composite.net/composite-1559.htm
Findes på denne sti: Composite Developer | 3.x technologies | ASP.NET | Composite .Net API | ReadConfig.aspx