| System.Web.UI.WebControls (system.web.dll) | class |
You can use a Literal control to put plain text on
a page (optionally, with embedded HTML markup tags). In this respect,
the Literal control is somewhat like the
Label control, except it cannot use any special
formatting, styles, or fonts.
Do not confuse the Literal control with the
System.Web.UI.LiteralControl class. The latter is
used by ASP.NET to represent static HTML content found on a web page
that will not be made available to your code as a server-side
control.
public class Literal : System.Web.UI.Control {
// Public Constructors
public
Literal ( );
// Public Instance Properties
public string
Text {set; get; }
// Protected Instance Methods
protected override void
AddParsedSubObject (object
obj ); // overrides System.Web.UI.Control
protected override ControlCollection
CreateControlCollection ( ); // overrides System.Web.UI.Control
protected override void
Render (System.Web.UI.HtmlTextWriter
output ); // overrides System.Web.UI.Control
}
Hierarchy
System.Object
System.Web.UI.Control(System.ComponentModel.IComponent,
System.IDisposable,
System.Web.UI.IParserAccessor,
System.Web.UI.IDataBindingsAccessor)
Literal