serim urhan serim urhan - 2 months ago 24
ASP.NET (C#) Question

Paging by using dynamically created html table

I am coding online sales for a website. I have a problem on my main page where I would like to show products. I defined a table with 4 columns, but there are over than a 100 products and I need paging for that.

How can I implement paging with 20 products per page?


There are a lot of finished controls that will help you on the way, check this MSDN Article out: Creating a Pager Control for ASP.NET

You could also check out one of the many jQuery Pagers out there, however if you use the jQuery solution all the rows will always be loaded. If you use some pre-built ASP.NET control for it, it will only fetch the number of elements you desire for each page.