DATAPAGESIZE Attribute | dataPageSize参数属性
| DHTML文档教程 |
Sets or retrieves the number of records displayed in a table bound to a data source.
dhtml语法
HTML | <TABLE DATAPAGESIZE
= iSize... >
|
---|
Scripting | TABLE.dataPageSize [ = iSize ] |
---|
DHTML可能的值
iSize | Integer that
specifies or receives the number of records in the table. |
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.
remarks
the firstpage and lastpage methods are used to navigate directly to the first and last pages of a databound table, respectively. the nextpage and previouspage methods are used to navigate sequentially through the pages of a databound table.
DHTML代码范例
In this example, a text box is bound to the customer_name field supplied by a data source object with an ID of customer. Because the text box is located within a data-bound table, the text box is repeated to display each of the records in the data source. the datapagesize attribute on the table limits the display to 10 records.
<table datasrc="#customer" DATAPAGESIZE=10>
<TR><TD><INPUT TYPE=TEXTBOX DATAFLD="customer_name"></TD></TR>
</TABLE>
是否符合公共标准
There is no public standard that applies to this property.
Applies To
更多语法参考
introduction to data binding, firstpage, lastpage, nextpage, previousPage