This topic has not yet been rated - Rate this topic

Doctype Enumeration

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

Namespace:  System.Web.UI.MobileControls.Adapters.XhtmlAdapters
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)
public enum Doctype
Member nameDescription
NotSetNot determined.
XhtmlBasicBasic XHTML format. This format does not support frames and styles.
XhtmlMobileProfileXHTML Mobile Profile format.
Wml20WML 2.0 document.

When you specify one of the Doctype enumeration values as the parameter in a SetDocType method call, the 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 several additional elements and attributes to XHTML Basic from the full XHTML 1.0, including additional presentation elements and support for internal style sheets.

Wireless Markup Language (WML) 2.0 expands on both XHTML Basic and XHTML Mobile Profile by providing support for cascading style sheets.

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

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

.NET Framework

Supported in: 3.5, 3.0, 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.