Literal

Literaldisposable

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



ASP. NET in a Nutshell
ASP.NET in a Nutshell, Second Edition
ISBN: 0596005202
EAN: 2147483647
Year: 2003
Pages: 873

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net