The Label control represents an empty placeholder in the page, unlike the
Literal control the Label HTML encodes its
text when rendering. Setting a Label's Text property to
"<b>This</b>" will result in an output like "<b>This</b>".
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 be HTML encoded before rendering.
bool
Visible
true
Wether or not the control is rendered into the page's HTML.
bool
Persist
true
Wether or not the control remembers its own Text setting across form postbacks
ASPX
<Chan:Label runat="server" id="lblOne" />
CS
using System;
using Chan;
public class MyPage : Chan.Page
{
protected Chan.Controls.Label litOne;
public void Page_Load()
{
lblOne.Text = "if x < 4 & x*2 > 5 what is x?";
}
}