LiteralControl

LiteralControldisposable

System.Web.UI (system.web.dll)class

The ASP.NET parser automatically creates LiteralControl instances for any text or HTML it finds in a page that does not correspond to a server control, and then adds them to the containing control's Control.Controls collection. You should not confuse this class with the System.Web.UI.WebControls.Literal control class, which can be used to add simple text to a web page (much like an unformatted Label control).

public class LiteralControl : Control { // Public Constructors    public LiteralControl( );    public LiteralControl(string text); // Public Instance Properties    public virtual string Text{set; get; } // Protected Instance Methods    protected override ControlCollection CreateControlCollection( );// overrides Control    protected override void Render(HtmlTextWriter output);       // overrides Control }

Hierarchy

System.Object Control(System.ComponentModel.IComponent, System.IDisposable, IParserAccessor, IDataBindingsAccessor) LiteralControl

Returned By

TemplateControl.CreateResourceBasedLiteralControl( )



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