@Html.Pagination((int)ViewBag.PageSize, (int)ViewBag.Index, (int)ViewBag.RecordCount, new { @ViewType = 3, @Template = "{List}", @Postfix = ".html", @VirtualPath = "/news-Managerlist-", @Identifier = "Index", @Encrypt = false })我在两个页面都用到这个分页控件,为什么我在一个页面点击上下页的时候,值也传到另一个页面去了,两个页面传进的page还是一样的,求教!
分页控件的路由配置如下:
routes.MapRoute(
"NewsList", // Route name
"News-List-{Page}", // URL with parameters
new { controller = "Home", action = "index"} // Parameter defaults
);
routes.MapRoute(
"NewsList1", // Route name
"News-Managerlist-{Page}", // URL with parameters
new { controller = "Manager", action = "index" } // Parameter defaults
);