XhtmlMobileTextWriter::WriteDoctypeDeclaration Method (Doctype)
Writes a <!DOCTYPE> declaration that is unique to target devices represented by the provided Doctype value. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.
Assembly: System.Web.Mobile (in System.Web.Mobile.dll)
The page adapter calls this method, and depending on the type, writes the following document type declarations:
Type | Description |
|---|---|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"> | |
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> | |
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD WML 2.0//EN" "http://www.wapforum.org/dtd/wml20.dtd"> |
This method is used primarily by developers of custom mobile page and control adapters.
Available since 2.0