私はモデルとしてリストを持っているasp.Net Mvc4 Webアプリケーションを持っています:
<table class="table_data" border="1">
<tr>
@if(Model.Count > 0){
<th>
@Html.Label("Fonction")
</th>
<th>
@Html.Label("Nom du client")
</th>
<th>
@Html.Label("Date de réception")
</th>
<th>
@Html.Label("Date de clôture")
</th>
<th></th>
}
</tr>
@foreach(Planning.Models.Paire p in Model){
<tr>
<td>
<label>@p._tag</label>
</td>
<td>
<label>@p._client</label>
</td>
<td>
<label>@p._reception</label>
</td>
<td>
<label>@p._cloture</label>
</td>
<td>
@{
List<Planning.Models.Impaire> liste = u.Get_Impaire_List();
Planning.Models.Impaire imp = liste.Find(x => x.id_paire == p.Id);
if (imp != null){
@Html.ActionLink("voir plus de détails", "Details", new { id_paire = p.Id })}
}
</td>
</tr>
}
</table>
Model
ですList<Paire>
。_
各 15 行を同じビューに一緒に表示したいのですが、同じビューでページ間にページネーションを追加するにはどうすればよいですか? 私はAjax
それを行うために使用できますか?