我现在这样写:@Html.PagedListPager((IPagedList)Model, page => Url.Action("List", new {p= page }), new PagedListRenderOptions { MaximumPageNumbersToDisplay = 5 }),url是http://localhost:2571/Home/List?p=1这样的
根据路由来解析的,首先找到匹配action的路由.然后判断怎么传值如果你路由里设置了http://localhost:2571/Home/List/页码
他应该能正常解析出来http://localhost:2571/Home/List/1的
这个url已经能解析了,我设置了路由,现在就是怎么让这个分页组件生成这样的url
@拖鞋王子: 指定路由,你看下他的重载,应该有个是指定路由的