
Form | 749
MobileControls
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Hierarchy
System.Object ➝ System.ValueType ➝ System.Enum(System.IComparable, System.IFor-
mattable, System.IConvertible)
➝ FontSize
Returned By
FontInfo.Size
Passed To
FontInfo.Size
Form
System.Web.UI.MobileControls (system.web.mobile.dll)
.NET 1.1, disposable
class
A Form is the outermost grouping of controls in a mobile page. All mobile controls must
be placed inside a form. You can add multiple forms to a page, although only one will
be visible at a time. To change the currently displayed form, you can set the ActiveForm
property, or you can create a Link control with a Link.NavigateUrl set to the name of the
desired form (preceded by the # symbol). Forms cannot be nested (although you can
nest one or more Panel controls).
The Form control supports literal text. You can also insert markup tags directly into the
literal text of a Form. Supported tags include <a> (anchor), <b> (bold), <i> (italic), <br>
(line break), and <p> (paragraph). These tags will be rendered in a device-independent
manner, which means that a <p> could conceivably be translated into a <br> tag if
required by the client device. In order to ensure compatibility across a broad range of
devices, all other tags are ignored, and will never affect the control’s output.
Small = 2,
Large = 3