
808
|
Chapter 41: The System.Web.UI.MobileControls.Adapters Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Hierarchy
System.Object ➝ ControlAdapter(System.Web.UI.MobileControls.IControlAdapter) ➝
HtmlControlAdapter ➝ HtmlValidationSummaryAdapter
HtmlValidatorAdapter
System.Web.UI.MobileControls.Adapters (system.web.mobile.dll)
.NET 1.1
class
This adapter renders all the validation controls (which derive from System.Web.UI.Mobile-
Controls.BaseValidator) control to HTML.
Hierarchy
System.Object ➝ ControlAdapter(System.Web.UI.MobileControls.IControlAdapter) ➝
HtmlControlAdapter ➝ HtmlValidatorAdapter
MobileTextWriter
System.Web.UI.MobileControls.Adapters (system.web.mobile.dll)
.NET 1.1, marshal by reference, disposable
class
All adapters render mobile controls using a special System.Web.UI.HtmlTextWriter that is
customized for the type of markup. For example, device adapters that render cHTML
use the ChtmlMobileTextWriter, and those that use WML use the WmlMobileTextWriter. All these
classes inherit from the base MobileTextWriter, which defines the basic methods for
writing, text, styles, and URL information.
public override void OnInit( EventArgs e); // overrides ControlAdapter
public override void Render( HtmlMobileTextWriter writer); // overrides HtmlControlAdapter
}
public class HtmlValidatorAdapter : HtmlControlAdapter {