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

G. andrew Duthie; matthew Macdonald

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

HtmlControlAdapter.NET 1.1

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

All HTML-specific control adapters (which render HTML 3.2 with no client-side script) derive from this base class. It overrides the basic functionality defined in the ControlAdapter class to add HTML-specific support for hyperlinks, and to ensure that the FormAdapter property references a valid HtmlFormAdapter.

public class 

HtmlControlAdapter : ControlAdapter { // Public Constructors public

HtmlControlAdapter ( ); // Protected Static Fields protected static readonly int

NotSecondaryUI ; // =-1 // Public Instance Properties public virtual bool

RequiresFormTag {get; } // Protected Instance Properties protected HtmlFormAdapter

FormAdapter {get; } protected HtmlPageAdapter

PageAdapter {get; } protected int

SecondaryUIMode {set; get; } // Public Instance Methods public override void

LoadAdapterState (object

state ); // overrides ControlAdapter public virtual void

Render (HtmlMobileTextWriter

writer ); public override void

Render (System.Web.UI.HtmlTextWriter

writer ) ; // overrides ControlAdapter public override object

SaveAdapterState ( ); // overrides ControlAdapter // Protected Instance Methods protected virtual void

AddAccesskeyAttribute (HtmlMobileTextWriter

writer ); protected virtual void

AddAttributes (HtmlMobileTextWriter

writer ); protected virtual void

AddJPhoneMultiMediaAttributes (HtmlMobileTextWriter

writer ); protected void

ExitSecondaryUIMode ( ); protected virtual void

RenderAsHiddenInputField (HtmlMobileTextWriter

writer ); protected void

RenderBeginLink (HtmlMobileTextWriter

writer , string

target ); protected void

RenderEndLink (HtmlMobileTextWriter

writer ); protected void

RenderPostBackEventAsAnchor (HtmlMobileTextWriter

writer , string

argument , string

linkText ); protected void

RenderPostBackEventAsAttribute (HtmlMobileTextWriter

writer , string

attributeName , string

argument ); protected void

RenderPostBackEventReference (HtmlMobileTextWriter

writer , string

argument ); }

Hierarchy

System.Object ControlAdapter(System.Web.UI.MobileControls.IControlAdapter) HtmlControlAdapter

Subclasses

Multiple types