Home   |   QuickStart Welcome   |   ASP.NET   |   Web Services   |   How Do I...?   
  |   I want my samples in...      

ASP.NET 2.0 Quickstart Tutorials


A Literal control is used to display text. The developer cannot apply a style to a literal control. This control act as a pass-through content to the adapter, so it enable developer to display ML specific content by using property overrides.

Simple Literal control

The following example demonstrates how to use the Literal control to display static text.

VB Literal1.aspx
Run Sample View Source

Encode Literal control

The setting the Mode property to Encode will encode the content of the Text property.

VB Literal2.aspx
Run Sample View Source