HBCMS更多的中文手册参考:

DATAFLD Attribute | dataFld参数属性

DHTML文档教程

Sets or retrieves which field of a given data source, as specified by the datasrc property, to bind to the specified object.

dhtml语法

html<ELEMENT DATAFLD = sField... >
Scriptingobject.dataFld [ = sField ]

DHTML可能的值

sFieldString that specifies or receives the field name.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.

Examples

In this example, a text box is bound to the flavor field supplied by a data source object with an ID of ice_cream. Because the text box is contained within a table, the text box is repeated and all values in the flavor column are displayed.

<TABLE DATASRC="#ice_cream">
<TR><TD><INPUT TYPE=TEXTBOX DATAFLD=flavor></TD></TR>
</TABLE>

In this example, the select object is bound to the card_type column of a data source control with an id of order. the value of the field in the data set determines the option that is initially selected. in addition, when the user selects a different option from the select, the value of the card_type field in the current record of the data set is updated.

<select datasrc="#order" datafld="card_type">
<OPTION>Visa
<OPTION>Mastercard
<OPTION>American Express
<OPTION>Diner's Club
<OPTION>Discover
</SELECT>

是否符合公共标准

There is no public standard that applies to this property.

Applies To

A, APPLET, BUTTON, DIV, FIELDSET, FRAME, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=text, LABEL, MARQUEE, SELECT, SPAN, TEXTAREA

更多语法参考

Introduction to Data Binding