The ASPX sample below will display the Composite page with ID 1 when invoked.
The RenderPage method should be invoked during the Page Load event. When constructing the PageBuilder class, you should provide the ASP.NET Control onto which the Composite page should be rendered - this is typically the Page object (which is referenced using this in the sample below).
<%@ Page Language="c#" AutoEventWireup="true" AspCompat="true"%> <%@ Assembly name="Composite.Cms.Pub.PageRender, Version=3.1.1117.310, Culture=neutral, PublicKeyToken=b5e57ccb698eab8e" %> <%@ Import Namespace="Composite.Cms.Pub.PageRender" %>
<script language="C#" runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
PageBuilder PB = new PageBuilder( this );
PB.RenderPage( 1 );
}
</script>