网址中的分页号 [英] paging number in url

查看:77
本文介绍了网址中的分页号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个数据列表和pagercontrol,所以当页面加载显示listview的第一页时,我希望url为:
www.project.com/book/1

然后分页完成第二页

http://www.project.shop.com/book/2

请帮忙.
在此先感谢

i have a datalist and pagercontrol, So when page load showing first page of listview then i want url to be:
www.project.com/book/1

and paging is done for second page then

http://www.project.shop.com/book/2

please help.
Thanks in advance

推荐答案

您可以使用URL重写.

在这里阅读:
使用ASP.NET进行URL重写 [ MSDN:URL重写 [ URL路由 [
You can use URL Rewriting.

Read here:
URL Rewriting with ASP.NET[^]
MSDN: URL Rewriting[^]
OR
Read about, In ASP.NET 4.0: URL Routing[^]


类似的讨论进行了@ http: //stackstackflow.com/questions/6083277/showing-paging-number-in-url-in-asp-net [
Similar discussion went @ http://stackoverflow.com/questions/6083277/showing-paging-number-in-url-in-asp-net[^]


这篇关于网址中的分页号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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