The Literal control represents an empty placeholder in the page, unlike the
Label control the Literal has no container and does not HTML encode its
text when rendering. Setting a Literal's Text property to
"<b>This</b>" will result in an output like This.
Qualifiers
Type
Name
Default
Description
string
id
""
Unique identifier within the page for the control
string
Text
""
The text that will appear in place of the control on the page, this will not be HTML encoded before rendering.
bool
Visible
true
Wether or not the control is rendered into the page's HTML.
0.8.1
bool
Persist
true
Wether or not the control remembers its own Text setting across postbacks
ASPX
<Chan:Literal runat="server" id="litOne" />
CS
using System;
using Chan;
public class MyPage : Chan.Page
{
protected Chan.Controls.Literal litOne;
public void Page_Load()
{
litOne.Text = "<b>Bold Text</b>";
}
}