What is Literal Control?
Mode
Description
PassThrough
The contents of the control are not modified.
Encode
The contents of the control are converted to an HTML-encoded string.
Transform
Unsupported markup-language elements are removed from the contents of the control. If the Literal control is rendered on a browser that supports HTML or XHTML, the control's contents are not modified.
Literal Control
Label Control
A Literal Web Server control used to insert static text on a web page. The Literal Control's only controllable aspect is the text that it holds.
The Label Web Server control is used to display static text on web page. The Label Control has properties that enable one to programmatically apply styles/stylesheet class to the rendered output. Can handle JavaScript at Client side.
The class hierarchy for this control is as follows:Object -> Control -> Literal
The class hierarchy for this control is as follows: Object -> Control -> WebControl -> Label
Literal Control doesn't add any HTML elements to the web page
Label Control is rendered as <span> tag.
You can't apply any style property to the Literal Control.
You can apply any style property to the Label Control.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: