LiteralText Class

Provides the run-time instantiation of literal text specified in a form.

Namespace: System.Web.UI.MobileControls
Assembly: System.Web.Mobile (in

Public Class LiteralText
	Inherits PagedControl
Dim instance As LiteralText

public class LiteralText extends PagedControl
public class LiteralText extends PagedControl
Not applicable.

The only place where external code must access the members of a LiteralText class is in adapters written for a new class of devices. Be sure that an adapter is written for literal text.

The style with which literal text is rendered will differ based on device, but the literal text will appear on all devices. Between HTML and WML, there are no differences.

The text will render in the following manner:

  • The control renders literal text on its own line with the appropriate style attributes applied.

  • When nesting tags, the hyperlink tag (anchor tag: <a>) does not recognize nested tags. For example, nesting the <b> or <i> tag as literal text inside the <a> tag will not render a link as bold or italic. The control completely ignores all tags inside of the <a> tag.


It is important for an adapter to use the TextView.Text property to dynamically set the text that you want to display on a form. Do not use this class to do so.

  • AspNetHostingPermission  for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
  • AspNetHostingPermission  for operating in a hosted environment. Demand value: InheritanceDemand; Permission value: Minimal.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1