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 12:46:54 PM and 010ms.

Page Title
Code Fragment
Site Name
Composure CMS