Freigeben über


cHTML Adapter Set 

The cHTML adapter set renders ASP.NET mobile Web pages on clients that are capable of rendering HTML 3.2 but do not support client scripting. This adapter set includes special support for cHTML, the markup language used on i-mode phones.

The cHTML adapter set inherits from the HTML adapter set, and shares the same adapters for most controls. All of the features that apply to HTML adapters also apply to cHTML adapters.

The following table lists the core classes that are included in the cHTML adapter set.

Adapter set Core adapter class namespace

ControlAdapter abstract base class

HtmlControlAdapter

HtmlFormAdapter

ChtmlFormAdapter

PageAdapter abstract class

ChtmlPageAdapter

MobileTextWriter class

ChtmlMobileTextWriter

Selection

The cHTML adapter set is selected if the PreferredRenderingType property of the MobileCapabilities class returns PreferredRenderingTypeHtml32 or PreferredRenderingTypeChtml10 and the JavaScript property of the browser capabilities class returns false.

Rendering Postbacks

The cHTML family of devices does not support scripting. Therefore, adapters must ensure that they render the correct output to support postbacks. If a postback does not require form data to be submitted, the adapter can call the same methods as the HTML adapters. However, to enable a postback to send form data to the server, the adapter must render a submit button.

See Also

Reference

ControlAdapter

Concepts

Adapter Sets Functionality