在没有数据控制的情况下分页 [英] Paging with form without data control

查看:61
本文介绍了在没有数据控制的情况下分页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,先生,

我需要一个包含textboxex,单选按钮,图像标签的表单页面.

在我的应用程序底部,我需要首先,最后,下一个,上一个功能.

请为此提供一些简单的代码,记住我没有使用任何数据控件,例如gridveiw,datalist或Repeater

在此先感谢.......

Hi sir,

I need a paging with form that contain textboxex, radio button,image tag as well.

I need first,last,next, previous functionily at the bottom of my application.

Please suggest me simple code for that, remember i am not using any data control such as gridveiw, datalist, or repeater

thanks in advance.......

推荐答案

您需要将表格放入表格中并像
You need to put your Form into table and implement like this.

Hope it helps!


我认为您可以编写过程/sql以返回结果(例如1-10).

将这些范围作为参数传递,例如@startRow@endrow.

然后,只需拥有一个将使用此过程将结果存储到数据表中的对象.

该对象可以简单地跟踪当前的@startRow@endrow.

您可以从您的网页中使用该对象来检索数据,并对下一个和上一个执行相应的函数调用.
I think you can write procedures/sql to return the result in a range like 1-10.

Pass these ranges as parameters like @startRow, @endrow.

Then simply hae an object that will use this procedure to get the results in a data-table.

This object can simply keep track of current @startRow and @endrow.

From your web page u can use this object to retrieve the data and do respective function calls for next and previous.


这篇关于在没有数据控制的情况下分页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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