Last post Sep 04, 2015 05:06 AM by PawanPal
Sep 03, 2015 08:38 PM|Csharpnoob2011|LINK
I am making a website where a table is retrieved from my database.
Each page contains 5 tables that are directly taken from the database.
My question is that I would like to make a webpage that is dynamic to the database. For example, if the database has 25 rows of data, my webpage would have 5 asp pages which contains all 5 talbes in each page. Page 1 should have the newest 5 tables, page
2, should have the newer 5, and so forth until page 5 which has the first rows of data.
So the more rows there are on my database, the more aspx pages should the website contain.
Can anyone help me out and guide me?
Sep 04, 2015 02:39 AM|eralper|LINK
You can use paging for data on your web page for displaying data in amounts of predefined rows
Please check following tutorial on how you can handle
For the page number you can use a pageid URL parameter, like .../datapage.aspx?pageid=3 and then read the pageid and send this value as a parameter to SQL
I hope this can help
Sep 04, 2015 05:06 AM|PawanPal|LINK
Why would you need a fresh page for every set of rows, if you need only 25 rows to be displayed at a time you can have gridview or other controls with paging.
If you have some special need, please mention that.