MVC C#PagedList - PagedListPager传递int数组作为参数

时间:2018-05-04 12:52:14

标签: c# asp.net-mvc pagedlist

我不知道如何传递一个int数组。 让我们看看我的代码......

@Html.PagedListPager(Model, pagina => Url.Action("Index", new
{

    pagina,
    codOccu = ViewBag.codOccu, // the array of int
    nomeEmp = ViewBag.Empresas,
    dtAbert = ViewBag.DataIni,
    dtFinal = ViewBag.DataFim,
    codStatus = ViewBag.codStatus,
    codUsu = ViewBag.CodUsu,
    codSet = ViewBag.CodSet,
    order = ViewBag.order

}))

,查询字符串结果类似于http://localhost:8080/Atendimento?pagina=2&codOccu=System.Int32%5B%5D&codStatus=0&codUsu=0&codSet=0&order=1

我需要一种方法来改变codOccu = System.Int32%5B%5D&至 codOccu = 123&安培; codOccu = 1234&安培; codOccu = 12345

0 个答案:

没有答案