Export (0) Print
Expand All
Expand Minimize

XhtmlMobileDocType Enumeration

Specifies the type of XHTML for the XhtmlTextWriter class to render to the page or control.

Namespace:  System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public enum XhtmlMobileDocType

Member nameDescription
Wml20Specifies the WML 2.0 format.
XhtmlBasicSpecifies the XHTML Basic format. This format does not support frames and styles.
XhtmlMobileProfileSpecifies the XHTML Mobile Profile format.

When you specify one of the XhtmlMobileDocType enumeration values as the parameter in a XhtmlTextWriter.SetDocType method call, that value forces the text writer to adhere to the restrictions of that XHTML document type.

XHTML Basic is the mobile version of XHTML 1.0 and supports the minimum number of XHTML modules to be an XHTML document. It is designed for clients that do not support the full set of XHTML features, such as mobile phones, personal digital assistants (PDAs), pagers, and set-top boxes. With XHTML Basic, a document can be presented on the maximum number of clients, including a wide range of mobile phones with different display formats and presentation capabilities.

XHTML Mobile Profile adds to XHTML Basic several additional elements and attributes from the full XHTML 1.0, including additional presentation elements and support for internal style sheets.

WML 2.0 expands on both XHTML Basic and XHTML Mobile Profile by providing support for cascading style sheets.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft