Code Fragment

A code fragment is a very powerful type of fragment that allows raw HTML or C # to be placed on the page.

Warning: Code Fragments are strictly for experienced web developers.
experienced web developers should be authorised to edit them.

Some examples of what can be placed with a code fragment are:

  • Hand made Html forms.
  • Custom database searches and results.
  • Webservice calls to other websites.
  • any thing you can think of...


The example below shows the current time on the server.

The current time on the server is <%= DateTime.Now.ToString("h:mm:ss tt")%> and <%= DateTime.Now.ToString("fff")%>ms.
and the output from this example is...
The current time on the server is 6:54:25 AM and 660ms.

Some other things you can easily display

Page Title
Code Fragment
Site Name
Composure CMS
Composure Page ID
Page Script Name