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

G. andrew Duthie; matthew Macdonald

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

WmlPageAdapter.NET 1.1

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

The WmlPageAdapter renders System.Web.UI.MobileControls.MobilePage instances to WML. 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 

WmlPageAdapter : WmlControlAdapter, System.Web.UI.MobileControls.IPageAdapter { // Public Constructors public

WmlPageAdapter ( ); // Public Instance Properties public virtual IList

CacheVaryByHeaders {get; } // implements System.Web.UI.MobileControls.IPageAdapter public IDictionary

CookielessDataDictionary {set; get; }// implements System.Web.UI.MobileControls.IPageAdapter public virtual int

OptimumPageWeight {get; }// implements System.Web.UI.MobileControls.IPageAdapter public override MobilePage

Page {set; get; } // overrides ControlAdapter public bool

PersistCookielessData {set; get; } // implements System.Web.UI.MobileControls.IPageAdapter // Public Static Methods public static bool

DeviceQualifies (System.Web.HttpContext

context ); // Public Instance Methods public virtual HtmlTextWriter

CreateTextWriter (System.IO.TextWriter

writer ); // implements System.Web.UI.MobileControls.IPageAdapter public virtual NameValueCollection

DeterminePostBackMode (System.Web.HttpRequest

request , string

postEventSourceID , string

postEventArgumentID , System.Collections.Specialized.NameValueCollection

baseCollection ); // implements System.Web.UI.MobileControls.IPageAdapter public virtual bool

HandleError (Exception

e , System.Web.UI.HtmlTextWriter

writer ); // implements System.Web.UI.MobileControls.IPageAdapter public virtual bool

HandlePagePostBackEvent (string

eventSource , string

eventArgument ); // implements System.Web.UI.MobileControls.IPageAdapter public virtual bool

IsFormRendered (System.Web.UI.MobileControls.Form

form ); public override void

Render (WmlMobileTextWriter

writer ); // overrides WmlControlAdapter public virtual bool

RendersMultipleForms ( ); // Protected Instance Methods protected virtual void

RenderForm (WmlMobileTextWriter

writer , System.Web.UI.MobileControls.Form

form ); }

Hierarchy

System.Object ControlAdapter(System.Web.UI.MobileControls.IControlAdapter) WmlControlAdapter WmlPageAdapter(System.Web.UI.MobileControls.IPageAdapter)

Subclasses

UpWmlPageAdapter

Returned By

WmlControlAdapter.PageAdapter