Connecting Tech Pros Worldwide Forums | Help | Site Map

Get Total Number Of Pages

paulsmith5@hotmail.com
Guest
 
Posts: n/a
#1: Dec 9 '05
Hi,

Given that I have an two integers - firstly the total number of items
and secondly the number of items per page what is the syntax to give me
the total number of pages. For example if there were 10 items and a
page size of 3 then 4 pages are required.

Thanks,

Paul


Peter Rilling
Guest
 
Posts: n/a
#2: Dec 9 '05

re: Get Total Number Of Pages


You mean something like Math.Ceiling(totalCnt/perPageCnt);

<paulsmith5@hotmail.com> wrote in message
news:1134148928.929202.109590@f14g2000cwb.googlegr oups.com...[color=blue]
> Hi,
>
> Given that I have an two integers - firstly the total number of items
> and secondly the number of items per page what is the syntax to give me
> the total number of pages. For example if there were 10 items and a
> page size of 3 then 4 pages are required.
>
> Thanks,
>
> Paul
>[/color]


Closed Thread