• Steve Thompson-454462 (2/19/2013)


    I'm assuming that total number of pages is a presentation-level metric indicating that at a rate of x records per page, you'll need to link to, and maybe display a label that indicates there are, y total pages. In other words if you show 10 records per page and the data set has 100 rows, you'll have 10 pages.

    If so, this can very easily be done in your .NET layer. If you're using ADO objects to extract the data you can easily do something like Datatable.Rows.Count to calculate the total number of rows returned (I believe you can use a similar Count function if you're using Linq). Divide the row count by number of rows per page (adjusting for any remainder, of course) and you should be good to go.

    If my assumption of what you meant by page count is off, I apologize.

    This is EXACTLY what i was looking for.Would you have a article for reference which will define the steps which you have mentioned?