Content Classes
In the traditional ASP.NET paradigm, the content classes are the code-behind files. Since the CSK takes a slightly different tack to allow high levels of customization, we will not be able to use the IDE to keep our web form in sync with the code behind the form. No real tie exists between the two, since each code file supports multiple versions of the same web form (the skins). Instead, we will need to manually keep track of which controls are on the page, and manually wire up the events that we need. The task is not difficult but does require some extra attention to control names and other details.
We have four content classes to write for the four pages we will need for our FAQ module:
Faq:
To display a single FAQ itemFaqSection:
To display a list of FAQsAddFaq:
For the data entry of FAQ contentEditFaq:
For the update of FAQ content
The amount of code you will need to write for a content class varies widely. Using the ContentItemPage
and ContentListPage
CSK classes we...