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. |