在分页器控件中以url显示页码 [英] Display page number in url from pager control

查看:85
本文介绍了在分页器控件中以url显示页码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用分页.当用户使用分页转到下一页时,我想在url中显示页码.用户从数字分页中选择的页码,这些页码将在url中显示为偏移量.

请任何人帮我.
在此先感谢

我正在使用pagercontrol进行分页并绑定数据,如下所示:
PagerControl1.BindDataWithPaging(dlPaginationSample,dv.Table);
我想显示用户在url

I am using pagination. I want to display page number in url when user go to the next page using pagination. The page number selected by the user from numeric pagination those page number will be displayed in url as offset.

Please any one help me.
Thanks in advance

i am using pagercontrol for pagination and bind data like this:
PagerControl1.BindDataWithPaging(dlPaginationSample, dv.Table);
i want to display selected page number by the user in url

推荐答案

中选择的页码两种解决方案:

第一个解决方案(推荐)-URL重写: http://msdn.microsoft.com/en-us/library /ms972974.aspx [ ^ ]

第二种解决方案(L ...但有效)
Two solutions:

First Solution (Recommended) - URL ReWrite: http://msdn.microsoft.com/en-us/library/ms972974.aspx[^]

Second Solution (Lame... but works)
Response.Redirect("SameExactPage.aspx?pagenumber=" + pageNumberVariable.ToString());


这篇关于在分页器控件中以url显示页码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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