
796
|
Chapter 41: The System.Web.UI.MobileControls.Adapters Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Hierarchy
System.Object ➝ System.MarshalByRefObject ➝ System.IO.TextWriter(System.IDispos-
able)
➝ System.Web.UI.HtmlTextWriter ➝ MultiPartWriter ➝ MobileTextWriter ➝
HtmlMobileTextWriter ➝ ChtmlMobileTextWriter
ChtmlPageAdapter
System.Web.UI.MobileControls.Adapters (system.web.mobile.dll)
.NET 1.1
class
The ChtmlPageAdapter renders System.Web.UI.MobileControls.MobilePage instances to cHTML. The
process for rendering a device-specific page is much the same as the process for
rendering a device-specific control, although the page adapter has additional responsi-
bilities. These include creating the device-specific text writer for all adapters (using
CreateTextWriter( )), retrieving postback data (using DeterminePostBackMode( ) and
HandlePagePostBackEvent( )), and handling errors (using HandleError( )).
Hierarchy
System.Object ➝ ControlAdapter(System.Web.UI.MobileControls.IControlAdapter) ➝
HtmlControlAdapter ➝ HtmlPageAdapter(System.Web.UI.MobileControls.IPageAdapter) ➝
ChtmlPageAdapter
ChtmlPhoneCallAdapter
System.Web.UI.MobileControls.Adapters (system.web.mobile.dll)
.NET 1.1
class
This adapter renders the System.Web.UI.MobileControls.PhoneCall control to cHTML by using a
“tel:” URL on a device with telephony capability.