October 2010
Intermediate to advanced
1920 pages
73h 55m
English
Literal ControlThe Literal control is similar to the Label control. You can use the Literal control to display text or HTML content in a browser. However, unlike the Label control, the Literal control does not render its content inside of a <span> tag.
For example, the page in Listing 2.4 uses a Literal control in the page’s <head> tag to dynamically modify the title displayed in the browser title bar. The current date displays in the Literal control (see Figure 2.3).
Figure 2.3. Modifying the browser title with a Literal control.

Listing 2.4. ShowLiteral.aspx
If you used a Label control in Listing 2.4 instead of a Literal control, ...