EditField

The EditField HTML Component (HTC) provides a mechanism for editing simple data types. It provides validation of input according to supplied limits. EditField HTCs are used in a variety of circumstances: embedded within the DynamicTable, EditSheet, and ListEditor HTCs, or by themselves on a page. Validation of input is built into the control.

Data is passed to the EditField HTC in the form of XML data-islands. This includes the configuration data that provides, for example, minimum and maximum values for input validation. It also includes the data itself, contained in a different XML data-island. Configuration data varies slightly from HTC to HTC, depending on the specific characteristics of each type of HTC. In contrast, the data itself is essentially always the same — one or more records, each containing individual fields of data. Because of this, most of the HTCs accept data in the same generalized format. For more information about this data format, see Getting Data to the Client.

This section contains:

  • Data Types. Describes the different data types, and thus different controls, supported by the EditField HTC.
  • Events. Describes the events supported by the EditField HTC.
  • Properties. Describes the properties supported by the EditField HTC.
  • Methods. Describes the methods supported by the EditField HTC.
  • Container Attributes. Describes the attributes that the EditField HTC expects to be set on the element in which it is contained.
  • Configuration Data. Describes the data passed to the EditField HTC via the ID used as the value of the MetaXML container attribute.
  • Instantiation Example. Demonstrates how the EditField HTC is instantiated in script on an Active Server Pages (ASP) page.

Copyright © 2005 Microsoft Corporation.
All rights reserved.