A
AAaron123
I'm confused about what my code displays.
I want to be sure I understand the following.
Does it mean that if I put markup into the literal's text it will display as
raw text
Does it mean that a label control will format markup before it is displayed?
That's the way I read it.
<literal>
Use the System.Web.UI.WebControls..::.Literal control to reserve a location
on the Web page to display text. The Literal control is similar to the Label
control, except the Literal control does not allow you to apply a style to
the displayed text. You can programmatically control the text displayed in
the control by setting the Text property.
<label>
Use the Label control to display text in a set location on the page. Unlike
static text, you can customize the displayed text through the Text property.
You can also use the Literal and PlaceHolder controls to display text on the
Web Forms page. However, unlike the Label control, these controls do not
render any additional tags.
thanks
I want to be sure I understand the following.
Does it mean that if I put markup into the literal's text it will display as
raw text
Does it mean that a label control will format markup before it is displayed?
That's the way I read it.
<literal>
Use the System.Web.UI.WebControls..::.Literal control to reserve a location
on the Web page to display text. The Literal control is similar to the Label
control, except the Literal control does not allow you to apply a style to
the displayed text. You can programmatically control the text displayed in
the control by setting the Text property.
<label>
Use the Label control to display text in a set location on the page. Unlike
static text, you can customize the displayed text through the Text property.
You can also use the Literal and PlaceHolder controls to display text on the
Web Forms page. However, unlike the Label control, these controls do not
render any additional tags.
thanks