Divide data into pages
3 answers
This will depend entirely on the content. If it's a simple datagrid, you can use the built-in datagrid podcast. If the data is coming from SQL I would suggest creating a generic "paging control" and using the SQL paging functionality to only discard the data you want to see.
If it's a SQL 2005 swap (or higher) nice and easy:
SELECT Description, Date
FROM (SELECT ROW_NUMBER() OVER (ORDER BY MyCol DESC) AS Row, Desc, Date FROM MyTable)
AS MyTableWithRowNumbers
WHERE Row >= 1 AND Row <= 10
+5
source to share
Use GridView and LinqDataSource.
He will do everything for you.
Cm:
http://msdn.microsoft.com/en-us/library/bb470363.aspx
and
0
source to share