Introduction

The Literal control is somewhat like the label control, with the difference being that Literal does not surround it’s content in a <span> tag. The Literal control can display text or HTML content.

Implementation

In the figure below, the title tag uses the Literal control to populate the tag dynamically. In this case, we’re going to display the current date.

The Literal control is one of the most commonly used asp tags and you will be sure to use it in any .NET project.