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.
Only
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...

Example

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 3:36:33 AM and 186ms.

Some other things you can easily display

Page Title
Code Fragment
Site Name
Composure CMS
Composure Page ID
b586ada3-21f0-453b-857b-304832c3043a
Page Script Name
CodeFragment.aspx