serim urhan serim urhan - 1 year ago 90
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download