一个页面功能模块比较多。有一个分部视图功能是分页显示列表,那这个pageindex要怎么传递呢?get方式怎么传递?post又怎么传递?
2条回答 默认 最新
- threenewbee 2016-08-14 15:45关注
可以用@ActonLink(动作, 控制器, new { pageindex = xxx }) 服务器用 Action GetList(int pageindex) { ... }
解决 无用评论 打赏 举报
一个页面功能模块比较多。有一个分部视图功能是分页显示列表,那这个pageindex要怎么传递呢?get方式怎么传递?post又怎么传递?
可以用@ActonLink(动作, 控制器, new { pageindex = xxx })
服务器用
Action GetList(int pageindex)
{
...
}