使用'next / pre with numeric'进行自定义分页 [英] custom paging using 'next/pre with numeric'
本文介绍了使用'next / pre with numeric'进行自定义分页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好我只想进行自定义分页,其中在网格视图的页脚,必须有一个寻呼机''pervious / next with numeric''
这是我做了什么
在aspx页面
展开 | 选择 | Wrap | 行号
解决方案
你意识到这个功能已经是GridView的一部分吗?
实际上它看起来已经在使用这个功能,因为你有一个实际处理它的方法...... />
我不太确定你遇到问题的地方。
你发布了很多代码,很难通读代码并理解问题是什么,因为你还没有明确定义什么问题是。
您有2个班级。
您是否尝试使用一个班级而不是另一个班级?
你试试这个问题有什么问题?
-Frinny
要求回复
只需复制粘贴代码,然后你就会知道我想要做什么
实际上我只是想在我的项目中使用类NumericWithNext:ITemplate,但我无法做到简而言之,我只想使用这两个类,但我不能这样做
我想我知道你想在这里做什么。
您想将这两个类合并为一个类。
既然您只想在页脚中显示分页模板,那么您应该可以使用e DataControlRowType用于确定要创建的控件。
您必须向接受DataControlRowType的构造函数添加参数。然后在InstantiateIn方法中,您将检查此项以确定是否生成数据内容模板或页脚模板。
例如:
展开 < span class =codeDivider> | 选择 | Wrap | Line编号跨度>
hi guys i just want to perform custom paging in which at the footer of the grid view ,there must be a pager ''pervious/next with numeric''
this is what i did
in aspx page
Expand|Select|Wrap|Line Numbers解决方案You realize that this functionality is already part of the GridView right?
In fact it looks like were already using this functionality because you have a method that is actually handling it...
I''m not really sure where you''re having problems.
You have a lot of code posted and it''s very hard to read through the code and understand what the problem is because you haven''t clearly defined what the problem is.
You have 2 classes posted.
Are you trying to use one class instead of the other?
What problems are you having when you try this?
-Frinny
thnks for reply
just copy paste the code so then u come to know what I am trying to do
actually i just want to use class NumericWithNext : ITemplate in my project ,but i am not able to do it .In short I just want to use both of the class but i a not able to do it
I think I know what you want to do here.
You want to combine the two classes into 1 class.
Since you just want to display the paging template in the footer, you should be able to use the DataControlRowType to determine what controls to create.
You''ll have to add a parameter to the constructor that accepts the DataControlRowType. Then in the InstantiateIn method you''ll check this to determine whether generate the data content template or the footer template.
For example:
Expand|Select|Wrap|Line Numbers
这篇关于使用'next / pre with numeric'进行自定义分页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆