Name

LiteralControl

Synopsis

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 : Inherits Control
' Public Constructors
   Public Sub New() 
   Public Sub New(ByVal text As String) 
' Public Instance Properties
   Overridable Public Property Text As String  
' Protected Instance Methods
   Overrides Protected Function CreateControlCollection(
        ) As ControlCollection  
   Overrides Protected Sub Render(
        ByVal output As HtmlTextWriter) 
End Class

Hierarchy

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

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.