ChtmlPageAdapter

ChtmlPageAdapter.NET 1.1

System.Web.UI.MobileControls.Adapters (system.web.mobile.dll)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 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  }

Hierarchy

System.Object ControlAdapter(System.Web.UI.MobileControls.IControlAdapter) HtmlControlAdapter HtmlPageAdapter(System.Web.UI.MobileControls.IPageAdapter) ChtmlPageAdapter



ASP. NET in a Nutshell
ASP.NET in a Nutshell, Second Edition
ISBN: 0596005202
EAN: 2147483647
Year: 2003
Pages: 873

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net