【发布时间】:2012-06-03 18:53:24
【问题描述】:
更改 ListView 的 Insert、Delete 之类的按钮很好,因为它们只是普通的 asp:buttons,但是如果在 ListView 上启用分页,如何更改页面按钮(即第一个和最后一个)?
它们的类型:
<asp:DataPager ID="DataPager1" runat="server">
<Fields>
<asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True"
ShowNextPageButton="False" ShowPreviousPageButton="False" />
<asp:NumericPagerField />
<asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True"
ShowNextPageButton="False" ShowPreviousPageButton="False" />
</Fields>
</asp:DataPager>
只需要更改 ForeColor 和 BackColor 属性即可。
【问题讨论】:
-
我猜你必须使用 DataPager 或类似的东西。正在搜索...
标签: c# asp.net listview button