如何在不使用gridview或datagrid的情况下处理ASP.NET中的分页 [英] How to handle pagination in ASP.NET without using gridview or datagrid

查看:53
本文介绍了如何在不使用gridview或datagrid的情况下处理ASP.NET中的分页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I have googled and seems not to find a perfect answer. Most people make use of a gridview. This is what i'm trying to achieve. I am developing a website. I have about 50 records in my database. I want to display 7 records per paga and then provide a next and back button. i dont want to make use of a gridview because that wont be okay. I want to proper pagination technique where each data will be displayed in a div. I dont known what is used for pagination is a site like this but i want to handle my pagination like this too. Will really appreciate your suggestions and codes





我的尝试:



我的数据库中有记录,也可以提取记录



What I have tried:

I have the records in my databse and can pull out the records too

推荐答案

然后搜索名为Custom Pagination的内容。您可以编写一个查询,该查询将获取页码和页面大小,并返回您请求的行数。您可以获取该结果并附加到div。
Then search something called Custom Pagination. You can write a query which will take the page number and page size and return you requested number of rows. You can just take that result and append to the div.


您可以使用此插件,您必须进行ajax调用才能从数据库中获取数据。提供您的数据到这个插件,它将工作。
you can use this plugin, you have to make ajax call to get data from database. provide your data to this plugin and it will work.


这篇关于如何在不使用gridview或datagrid的情况下处理ASP.NET中的分页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆