DekGenius.com
[ Team LiB ] Previous Section Next Section

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( )

    [ Team LiB ] Previous Section Next Section