Share via


MobileControlBuilder Class

Provides parsing support for all ASP.NET mobile controls.

public class
   System.Web.UI.MobileControls.MobileControlBuilder :
   System.Web.UI.ControlBuilder

Remarks

The class object is internally created and used by the page parser when parsing a mobile control. Mobile controls that implement their own custom persistence must use a control builder that inherits from MobileControlBuilder class.

The MobileControlBuilder class implements the following persistence behavior:

  • Ignores white space directly inside the control.
  • Recognizes DeviceSpecific objects.
  • Enforces that forms are at the top level.
  • Enforces that style sheets are at the top level.
  • Enforces that styles are in style sheets.

Requirements

Namespace: System.Mobile.Web.UI.MobileControls

Assembly: System.Web.Mobile

See Also

DeviceSpecific Class | Control Builder Overview (Web Forms) | Control Parsing, ParseChildrenAttribute, and Control Builders (Web Forms) | Custom Control Builder Sample (Web Forms)