ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources]

G. andrew Duthie; matthew Macdonald

نسخه متنی -صفحه : 873/ 663
نمايش فراداده

lPageAdapter.NET 1.1

System.Web.UI.MobileControls.Adapters (system.web.mobile.dll)class

The lPageAdapter 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 

lPageAdapter : HtmlPageAdapter { // Public Constructors public

lPageAdapter ( ); // 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) lPageAdapter