Edit

Share via


Doctype Enum

Definition

Caution

The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.

Specifies the type of XHTML markup for an XhtmlTextWriter class to render to the page or control. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public enum class Doctype
public enum Doctype
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
public enum Doctype
type Doctype = 
[<System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")>]
type Doctype = 
Public Enum Doctype
Inheritance
Attributes

Fields

Name Value Description
NotSet 0

Not determined.

XhtmlBasic 1

Basic XHTML format. This format does not support frames and styles.

XhtmlMobileProfile 2

XHTML Mobile Profile format.

Wml20 3

WML 2.0 document.

Remarks

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.

Applies to

See also