当前位置: 代码迷 >> ASP.NET >> MVCpager搜索的参数如何传到url下去
  详细解决方案

MVCpager搜索的参数如何传到url下去

热度:8360   发布时间:2013-02-25 00:00:00.0
MVCpager搜索的参数怎么传到url上去
 @Html.Pager(Model, new PagerOptions { PageIndexParameterName = "id", NumericPagerItemWrapperFormatString = "<span class=\"cpb\">{0}</span>" })
------最佳解决方案--------------------------------------------------------
搜索时用get提交表单就自动加到url中了,不需要任何其它设置,象这样:

@using(Html.BeginForm("Index","Home",FormMethod.Get)){
。。。
  相关解决方案