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 responsibilities. 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( )).
public class ChtmlPageAdapter : HtmlPageAdapter { // Public Constructors public ChtmlPageAdapter( ); // Protected Instance Properties protected override string EventArgumentKey{get; } // overrides HtmlPageAdapter protected override string EventSourceKey{get; } // overrides HtmlPageAdapter// Public Static Methods public static bool DeviceQualifies(System.Web.HttpContext context); // Public Instance Methods public override HtmlTextWriter CreateTextWriter(System.IO.TextWriter writer); // overrides HtmlPageAdapter public override NameValueCollection DeterminePostBackMode(System.Web.HttpRequest request, string postEventSourceID, string postEventArgumentID, System.Collections.Specialized.NameValueCollection baseCollection);// overrides HtmlPageAdapter public override void RenderPostBackEvent(HtmlMobileTextWriter writer, string target, string argument);// overrides HtmlPageAdapter public override void RenderPostBackHeader(HtmlMobileTextWriter writer, System.Web.UI.MobileControls.Form form); // overrides HtmlPageAdapter }