@dspaging() Function

Top  Previous  Next

@dspaging() function sets paging information of a data source.

Syntax:

@dspaging(data-source-namecurrent-page-numberitems-per-pagepages-per-block)

 

data-source-name

The name of the data source whose paging information to be set

current-page-number

The current page of the data source

items-per-page

The number of items in a page

pages-per-block

The number of pages indexes in a block

Example:

@dspaging(products,1)     @// Sets the current page of the data source 'products' to 1

@dspaging(products,,10,5) @// Sets the items-per-page value to 10 and pages-per-block value to 5