CHAN Reference

Chan Home | Reference Home | Event Firing Order | web.config

   

Page

   

The Page class must be the base class for any of your own ASPX code-behind pages. It hooks into the native ASP.Net engine's Page_Init() event to kick off it's own Event sequence and polices the population of controls from postback and final HTML output.

The simplest Chan-driven site would probably need only one or two base Page overloads, the Chan_Demo implimentation uses one called Page_Base to wire up the Template which is then used as the base HTML for all the pages in the demo site.

In order to allow multiple pages to use the same template the Page class exposes a number of public properties which you can set from the Page directive at the top of each ASPX page such as Page_Title. It also exposes a simple pair of properties - Page_Scripts and Page_Styles - that allow you to specify comma seperated lists of css and javascript files to include.

Roadmap

  • Make PostedForm,PostedButton etc. readonly
  • Convert other public members to properties and make the members protected internal