Welcome   |   ASP.NET   |   Web Services   |   How Do I...?   |   Class Browser
  |   I want my samples in...   

ASP.NET Quickstart Tutorials

Go To...

Literal

A Literal control is used to display text. You cannot apply a style to a literal control. This control will pass the content directly to the client browser, unless you use the Mode property to encode the content.

Simple Literal control

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

C# Literal1.aspx
Run Sample View Source

Encode Literal control

By setting the Mode property to Encode, the Literal control will encode the content of the Text property.

C# Literal2.aspx
Run Sample View Source





Hosted by MaximumASP | Found a broken link? | Contact Us | Terms and conditions | Privacy Policy | Advertise with us
� 2000 - 2008  Mindcracker LLC. All Rights Reserved