DATAPAGESIZE Attribute | dataPageSize Property

DHTML, HTML, & CSS

DATAPAGESIZE Attribute | dataPageSize Property


Sets or retrieves the number of records displayed in a table bound to a data source.

Syntax

HTML<TABLE DATAPAGESIZE = iSize ... >
Scriptingtable.dataPageSize [ = iSize ]

Possible Values

iSizeInteger that specifies the number of records in the table.

The property is read/write with no default value.

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

Remarks

Use the nextPage and previousPage methods to display the subsequent and previous pages of records in the table.

Example

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.

Sample Code

<TABLE DATASRC="#customer" DATAPAGESIZE=10>
   <TR><TD><INPUT TYPE=TEXTBOX DATAFLD="customer_name"></TD></TR>
</TABLE>

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.

TABLE

See Also

data bindingInternet Link, nextPage, previousPage


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.