LiteralText Class
Assembly: System.Web.Mobile (in system.web.mobile.dll)
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.
Note: |
|---|
| 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.
System.Web.UI.Control
System.Web.UI.MobileControls.MobileControl
System.Web.UI.MobileControls.PagedControl
System.Web.UI.MobileControls.LiteralText
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.
Note: