Otter SDK Reference
Version:

LiteralHtml Class

Basically a System.Web.UI.LiteralControl, except that implements ISimpleControl and provides for optional encoding.

Inheritance Hierarchy

  • object
    • System.Web.UI.Control
      • Inedo.Web.Controls.LiteralHtml

Syntax

public class LiteralHtml : System.Web.UI.Control, System.ComponentModel.IComponent, System.IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IUrlResolutionService, System.Web.UI.IDataBindingsAccessor, System.Web.UI.IControlBuilderAccessor, System.Web.UI.IControlDesignerAccessor, System.Web.UI.IExpressionsAccessor, ISimpleControl

Constructors

Name Description
LiteralHtml

Initializes a new instance of the LiteralHtml class.

LiteralHtml(string text)

Initializes a new instance of the LiteralHtml class.

LiteralHtml(string text, bool writeEncoded)

Initializes a new instance of the LiteralHtml class.

Properties

Name Description
Text

Gets or sets the text.

WriteEncoded

Gets or sets a value indicating whether [write encoded].

Methods

Name Description
Render(System.Web.UI.HtmlTextWriter writer)

Renders the specified writer.

ToString

Returns a System.String that represents this instance.

WriteHtml(SlimHtmlTextWriter writer)

Writes the HTML.