我不需要unipager的默认布局,所以进行了自定义转换。如何在ascx转换中呈现页码 我的代码正在关注
<div class="container text-center">
<li><a href="/About/Press-Release" aria-label="First"><span aria-hidden="true"><i class="fa fa-angle-double-left"></i></span></a></li>
<li><a href="/About/Press-Release" aria-label="Previous"><span aria-hidden="true"><i class="fa fa-angle-left"></i></span></a></li>
<li class="active"><a href="/About/Press-Release">1<span class="sr-only">(current)</span></a></li>
<li><a href="/About/Press-Release?page=2" aria-label="Next"><span aria-hidden="true"><i class="fa fa-angle-right"></i></span></a></li>
<li><a href="/About/Press-Release?page=3" aria-label="Last"><span aria-hidden="true"><i class="fa fa-angle-double-right"></i></span></a></li>
</div>
&#13;
答案 0 :(得分:2)
Uni寻呼机需要转换列表
您获得的结果正是您在标记中所拥有的。
<li><a href="/About/Press-Release" aria-label="First"><span aria-hidden="true"><i class="fa fa-angle-double-left"></i></span></a></li>
上面的行应该是第一页转换
<li><a href="/About/Press-Release" aria-label="Previous"><span aria-hidden="true"><i class="fa fa-angle-left"></i></span></a></li>
上一页转换
<a href="<%# Eval("PageURL", true) %>"><%# Eval("Page") %></a>
页面转换(这是您缺少的)
像其他转变一样继续。
希望这有帮助